<?php class Test{ function mySort($a,$b){ return $a-$b; } function test(){ $arr = array(1,2,3,4,5,6,7); usort($arr,array('Test','mySort')); } } $t = new Test(); $t->test();
You have javascript disabled. You will not be able to edit any code.