Short if this else that in PHP?
<p>I was searching for some shorthand if/else code, but unlike <code>$var ? $a : $b</code> it doesn't need an 'else'-like returned value. What I want would be basically this, but shorter:</p>

<pre><code>$myVariable = "abc";
echo $myVariable ? $myVariable : "hello";
echo $myVariable ? "hello" : $myVariable;
</code></pre>

<p>I'm kind of used to do such a thing in Lua, which goes like:</p>

<pre class="lang-lua prettyprint-override"><code>local myVariable = "abc"

-- In case myVariable is false, print "hello". Otherwise it prints "abc"
print ( myVariable or "hello" )

 -- In case myVariable does have something (So, true) print "goodday."
print ( myVariable and "goodday" )
</code></pre>

<p>So I wondered, does PHP have the functionality to do such a thing?
Thanks.</p>
