Is there any way to write this
echo $foo ? 'bar' : '';
but without the false part? Just like this:
echo $foo ? 'bar';
and nothing would be echoed if $foo
is false automatically?
I often find that I just want to echo something if it's true but don't care about an else statement :)