is there a php function to return the difference between any 2 integer numbers as a positive integer?
<p>I have googled, yahooed and researched SO but no luck.  I am trying to compare 2 numbers using <strong>PHP</strong>.  </p>

<p>To be clear I know I can accomplish this using basic maths and maybe a simple</p>

<pre><code>if{} 
</code></pre>

<p>I know how to do this, I could write a simple function, finding the result but this is not my question.  </p>

<p>My question is simply  - Is there a <strong>PHP</strong> function to return the difference between 2 integer numbers, +ve or -ve presented in any order as a positive integer</p>

<p>Example  </p>

<pre><code>PHPFunction(3,-2) result 5
</code></pre>

<p>Thanks</p>