"Guard" operator like JavaScript in PHP
<p>I like to do this in JavaScript:</p>

<pre><code>function (a, b, c) {
    var foo = a || b || c;
    return foo.bar;
}
</code></pre>

<p>Is there a quick way to do assignment with fallback or does it require a custom <code>function</code>?</p>
