note 100485 modified in function.uasort by danbrown

From: Date: Tue, 19 Oct 2010 13:01:49 +0000
Subject: note 100485 modified in function.uasort by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173271@lists.php.net to get a copy of this message
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')); ?> --was-- <?php /** * a quick reminder on the syntax * if you want to use uasort in a Class or Object: */ // procedural: uasort($collection, 'my_sort_function'); // Object Oriented uasort($collection, array($this, 'mySortMethod')); // Objet Oriented with static method uasort($collection, array('self', 'myStaticSortMethod')); ?> http://php.net/manual/en/function.uasort.php

« previous php.notes (#173271) next »