Posted By

xida on 10/30/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jlan


Order Array


 / Published in: PHP
 

  1. function sortiere ( $a, $b )
  2. {
  3. if ($a['timestamp'] == $b['timestamp'])
  4. {
  5. return 0;
  6. }
  7.  
  8. if ($a['timestamp'] > $b['timestamp'] ) {
  9. return -1;
  10. } else {
  11. return 1;
  12. }
  13. }
  14.  
  15. uasort ( $twitter, 'sortiere' );

Report this snippet  

You need to login to post a comment.