title: Two tasks in a ternary operator - PHP
body: <p>I want to use two tasks if a ternary operator is true.
  as example:
  This code:</p>
  <pre class="lang-php prettyprint-override"><code>$bool = false;
  if(fnc1($brc)){
  $bool = true;
  $string = fnc2($brc);
  } else {
  $string = &quot;unknown&quot;;
  }
  </code></pre>
  <p>To this:</p>
  <pre class="lang-php prettyprint-override"><code>$string = fnc1($brc) ? (fnc2($brc); $bool = true) : &quot;unknown&quot;;
  </code></pre>
  <p>How is it possible to do more than one task <code>(fnc2($brc); $bool = true)</code> if the condition is true? My code doesn't work.</p>