update page now
Laravel Live Japan

Voting

: four plus two?
(Example: nine)

The Note You're Voting On

magikMaker
15 years ago
a quick reminder on the syntax if you want to use uasort in a Class or Object:

<?php

// procedural:
uasort($collection, 'my_sort_function');

// Object Oriented
uasort($collection, array($this, 'mySortMethod'));

// Objet Oriented with static method
uasort($collection, array('self', 'myStaticSortMethod'));

?>

<< Back to user notes page

To Top