title: PHP usort Understanding
body: <pre><code>function cmp_function($a, $b)
  
  {
  
  if ($a == $b) return 0;
    return ($a &gt; $b) ? -1 : 1;
  
  }
  
  $fruits = array("d"=&gt;"lemon", "a"=&gt;"orange", "b"=&gt;"banana" );
  
  usort($fruits, "cmp_function");
  </code></pre>
  
  <p>Question: What values will be passed for $a and $b parameters for <code>cmp_fucntion()</code>?</p>