Franco Zeoli’s profile

Latest Comments

1

usort($users,  function ($a, $b) {
 
    return strcmp($a['username'], $b['username']);
 
});

I like it that way.

Posted in Sorting Multi-Dimensional Arrays in PHP.

Fri, 01 Jul 2011 at 02:38:38 GMT


About

  • Twitter: @zfran
  • Location: Buenos Aires, Argentina
  • Joined: July 2011
  • Comments: 1