Answers for "php if else on liner"

PHP
0

php one line if without else

$thisVar != $thatVar ?: doThis();
or
($thisVar == $thatVar) && doThis();
or
if ($thisVar == $thatVar) doThis();
Posted by: Guest on May-01-2021

Browse Popular Code Answers by Language