Javascript-like syntax in php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9065182/does-php-support-conjunction-and-disjunction-natively">Does PHP support conjunction and disjunction natively?</a>  </p>
</blockquote>



<p>In javascript you can easily write something like that</p>

<pre><code>var c = a || b;
</code></pre>

<p>it will set  c by value from a or from b it depends which one is previously defined.
it means that this bool operator || return value. But do we have the same approach in PHP ?</p>

<p>is there any short form of <code>$c = ($a) ? $a : ($b ? $b : null)</code></p>
