asort(); echo "Standard sorting\n"; print_r($arr1); $arr2->natsort(); echo "\nNatural order sorting\n"; print_r($arr2);