Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php one line if without else

$thisVar != $thatVar ?: doThis();
or
($thisVar == $thatVar) && doThis();
or
if ($thisVar == $thatVar) doThis();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #line
ADD COMMENT
Topic
Name
8+7 =