Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [6] => Object2
  2. (
  3. [id] => 2
  4. [name] => bcc
  5. [costs] => 55
  6. )
  7.  
  8. [4] => Object3
  9. (
  10. [id] => 2
  11. [name] => fff
  12. [costs] => 66
  13. )
  14.  
  15. [3] => Object4
  16. (
  17. [id] => 4
  18. [name] => fff
  19. [costs] => 55
  20.  
  21. if($a->costs > $b->costs) return -1; - работает
  22. if($a->costs < $b->costs) return 1; - работает
  23. if ($a->costs == $b->costs) { - не работает
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement