Posted in PHP onOctober 31, 2011
<?php $fruits = array("155::vbscript::https://3water.com/list/list_114_1.htm", "1::javascript::https://3water.com/list/list_3_1.htm", "2::正则表达式::https://3water.com/list/list_6_1.htm", "3::服务器常用软件::http://s.3water.com"); print_r($fruits); rsort($fruits,SORT_NUMERIC); print_r($fruits); ?>
显示结果:
Array
(
[0] => 155::vbscript::https://3water.com/list/list_114_1.htm
[1] => 1::javascript::https://3water.com/list/list_3_1.htm
[2] => 2::正则表达式::https://3water.com/list/list_6_1.htm
[3] => 3::服务器常用软件::http://s.3water.com
)
Array
(
[0] => 155::vbscript::https://3water.com/list/list_114_1.htm
[1] => 3::服务器常用软件::http://s.3water.com
[2] => 2::正则表达式::https://3water.com/list/list_6_1.htm
[3] => 1::javascript::https://3water.com/list/list_3_1.htm
)
求PHP数组最大值,最小值的代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@