<?php $foo = ''; $bar = null; $val = 'something'; echo $foo ? $foo : '0'; // 0 echo PHP_EOL; // ignore this echo $bar ? $bar : '0'; // 0 echo PHP_EOL; // ignore this echo $val ? $val : '0'; // something echo PHP_EOL; // ignore this
You have javascript disabled. You will not be able to edit any code.