$result = ($data->status == 1) ? 'active' : 'disable'
echo ($var1 >= $var2) ? 'this is true' : 'this is false';
$thisVar != $thatVar ?: doThis();
or
($thisVar == $thatVar) && doThis();
or
if ($thisVar == $thatVar) doThis();
($var > 2 ? echo "greater" : echo "smaller")