php compare value if not
<p>there have two value, <code>$a</code> and <code>$b</code>. I need make a judge, <code>$a</code> is not 3 times as bigger as b or <code>$b</code> is not 3 times as bigger as <code>$a</code>, <code>echo $a.'&amp;nbsp;and&amp;nbsp;'.$b;</code> else not.</p>

<p>for explain:</p>

<p>if <code>$a</code> = 5, <code>$b</code>=1 so <code>$b</code>*3 = 3,   <code>$b</code>*3 &lt; <code>$a</code>, then echo 'nothing'; </p>

<p>if <code>$a</code> = 5, <code>$b</code>=2 so <code>$b</code>*3 = 6,   <code>$b</code>*3 > <code>$a</code>, then echo <code>$a.'&amp;nbsp;and&amp;nbsp;'.$b;//5 and 6</code></p>

<p>if <code>$b</code> = 5, <code>$a</code>=1 so <code>$a</code>*3 = 3,  <code>$a</code>*3 &lt; <code>$b</code>, then echo 'nothing'; </p>

<p>if <code>$b</code> = 5, <code>$a</code>=2 so <code>$a</code>*3 = 6,  <code>$a</code>*3 > <code>$b</code>, then echo <code>$a.'&amp;nbsp;and&amp;nbsp;'.$b;//6 and 5</code></p>

<p>one of my code:</p>

<pre><code>$a='5';
$b='1';
if ((!($a&gt;=($b*3))) or (!($b&gt;=($a*3)))){
    echo $a.'&amp;nbsp;and&amp;nbsp;'.$b; //this may be echo 'nothing'
}else{
  echo 'nothing';
}
</code></pre>
