title: Quickest PHP equivalent of javascript `var a = var1||var2||var3;` expression
body: <p>Firstly is there a name for this expression ? </p>
  
  <p>Javascript</p>
  
  <pre><code>var value = false || 0 || '' || !1 || 'string' || 'wont get this far';
  </code></pre>
  
  <p><code>value</code> equals <code>string</code> (string) aka the fifth option</p>
  
  <p>PHP</p>
  
  <pre><code>$value = false || 0 || '' || !1 || 'string' || 'wont get this far';
  </code></pre>
  
  <p><code>$value</code> equals <code>true</code> (bool)</p>
  
  <p>Am I right in thinking the correct way to achieve the same result as JavaScript is by nesting ternary operators? What is the best solution ? </p>