title: php usort error message
body: <p>I have a class called Link with a function called Compare. When I runt this code I keep getting an error message  </p>
  
  <pre><code>foreach($filearray as $k=&gt;$v)  
  {  
  $website = new Link($v);  
  $links[] = $website;  
  }  
  usort($links, array("Link","compare"));  
  </code></pre>
  
  <p>But I get an error message and I cant figure out why...  </p>
  
  <blockquote>
    <p>"Warning: usort() [function.usort]: The argument should be an array"</p>
  </blockquote>