Getting Unexpected '<' in simple less than greater than comparison
<p>I feel very very very silly posting this, but I can't find the answer.  I've searched google and here.</p>

<pre><code>// originally values in a multi dimensional array, but used simple values 
// to rule out errors.
$somenumber = 1; $anotherone=5;
if ($somenumber &lt; $res-&gt;shares &lt; $anotherone ) {
     //blah
}
</code></pre>

<p>Get the error:
<code>Parse error: syntax error, unexpected '&lt;'</code></p>

<p>Seems pretty simple and straight forward.  Is there some weird thing that you can't compare multiple values?  Do I have to explicitly type?  </p>

<p>It works in Perl.  Which of course means that it has to work like this in everything else. ;)</p>
