How to get the output on this PHP script?
<p>I'm a newbie to programming and PHP learning about two dimensional arrays.</p>

<p>When I run this code below, it just gives me a blank page. When I put an echo in front of the function call like this <code>echo usort($a, 'mysort1');</code>  the page shows me a 1 (I have no idea why). </p>

<p><strong>What I really want to see is the output of the array after it's been sorted.</strong></p>

<p>Doing <code>var_dump($a);</code> is not what I'm after. how do I show the result of the function?</p>

<p>How? Thanks if you can help.</p>

<pre><code>&lt;?php

$a = array (
array ('key1' =&gt; 940, 'key2' =&gt; 'blah'),
array ('key1' =&gt; 23, 'key2' =&gt; 'this'),
array ('key1' =&gt; 894, 'key2' =&gt; 'that')
);


function mysort1($x, $x) {
     return ($x['key1'] &gt; $y['key']);

}

usort($a, 'mysort1'); 


?&gt; 
</code></pre>
