- print_r: documentation ( source)
- asort: documentation ( source)
<?php
$a = array(1,-1,0,NULL,2,0,-2);$b = array(NULL,-1,0,1,2,-2, 0);$c = array(0,1,-1,0,-2,2,NULL);echo "asort(array(1,-1,0,NULL,2,0,-2))\n";asort($a);print_r($a);echo "\nasort(array(NULL,-1,0,1,2,-2, 0))\n";asort($b);print_r($b);echo "\nasort(array(0,1,-1,0,-2,2,NULL))\n";asort($c);print_r($c);