Find greatest of three values in PHP
<p>With three numbers, <code>$x</code>, <code>$y</code>, and <code>$z</code>, I use the following code to find the greatest and place it in <code>$c</code>. Is there a more efficient way to do this?</p>

<pre><code>$a = $x;
$b = $y;
$c = $z;
if ($x &gt; $z &amp;&amp; $y &lt;= $x) {
    $c = $x;
    $a = $z;
} elseif ($y &gt; $z) {
    $c = $y;
    $b = $z;
}
</code></pre>
