can any one explain how uksort() in php works?
<p>I have read it in php manual ..and on may other website...but it is very difficult to understand.</p>

<p>Can any one help me out? </p>

<p>this is the example.</p>

<pre><code> &lt;?php  
    function my_sort($x, $y)  
    {  
    if ($x == $y) return 0;  
    return ($x &gt; $y) ? -1 : 1;  
    }  
    $people = array("10" =&gt; "javascript",  
    "20" =&gt; "php", "60" =&gt; "vbscript",  
    "40" =&gt; "jsp");  
    uksort($people, "my_sort");  
    print_r ($people);  
    ?&gt;  
</code></pre>
