Is this possible?
php $variable = $variable1 || $variable2?
if $variable1 is empty use $variable2
Is there existing that is something like that?
PHP 5.3+:
$variable = $variable1 ?: $variable2;
PHP 5.2-:
$variable = $variable1 ? $variable1 : $variable2;
1.4m articles
1.4m replys
5 comments
57.0k users