PHP Evaluate Variables Look For Best Fit
<p>Assuming I have four values:</p>

<pre><code>$right 
$down
$left
$up
</code></pre>

<p>And I want to choose the best out of the four. The values can either be <code>false</code>, <code>0</code>, <code>1-9</code>, or <code>D</code>.</p>

<p>False is the worst, 0 is second, 1-9 varies obviously 9 is best, and finally D is the best of all (stands of double).</p>

<p>What is best way to check this in PHP? I was thinking first check for D in all variables. If no D, then look for the highest number in all four, then look for 0, then finally look for false.</p>

<p>Thanks.</p>
