源代码
"; usort($arr1,"strcmp"); print_r($arr1); echo "
"; echo "自然顺序字符串比较"."
"; usort($arr2,"strnatcmp"); print_r($arr2); ?>
运行结果