时间:2021-07-01 10:21:17 帮助过:9人阅读
$fruits = array("155::vbscript::http://www.gxlcms.com/list/list_114_1.htm", "1::javascript::http://www.gxlcms.com/list/list_3_1.htm", "2::正则表达式::http://www.gxlcms.com/list/list_6_1.htm", "3::服务器常用软件::http://s.jb51.net");
print_r($fruits);
rsort($fruits,SORT_NUMERIC);
print_r($fruits);
?>
显示结果:
Array
(
[0] => 155::vbscript::http://www.gxlcms.com/list/list_114_1.htm
[1] => 1::javascript::http://www.gxlcms.com/list/list_3_1.htm
[2] => 2::正则表达式::http://www.gxlcms.com/list/list_6_1.htm
[3] => 3::服务器常用软件::http://s.jb51.net
)
Array
(
[0] => 155::vbscript::http://www.gxlcms.com/list/list_114_1.htm
[1] => 3::服务器常用软件::http://s.jb51.net
[2] => 2::正则表达式::http://www.gxlcms.com/list/list_6_1.htm
[3] => 1::javascript::http://www.gxlcms.com/list/list_3_1.htm
)http://www.bkjia.com/PHPjc/324468.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/324468.htmlTechArticle 代码如下:
?php $fruits = array("155::vbscript::http://www.gxlcms.com/list/list_114_1.htm", "1::javascript::http://www.gxlcms.com/list/list_3_1.htm", "2::正则表达式...