Detecting negative numbers
<p>I was wondering if there is anyway to detect if a number was negative in PHP?</p>

<p>I have the following code</p>

<pre><code>$profitloss = $result-&gt;date_sold_price - $result-&gt;date_bought_price;
</code></pre>

<p>I need to find out if $profitloss is a negative ... if it is i need to echo out that it is.</p>
