Copy code The code is as follows:
$fruits = array("155::vbscript: :http://www.jb51.net/list/list_114_1.htm", "1::javascript::http://www.jb51.net/list/list_3_1.htm", "2::regular expression: :http://www.jb51.net/list/list_6_1.htm", "3::Common server software::http://s.jb51.net");
print_r($fruits);
rsort($fruits,SORT_NUMERIC);
print_r($fruits);
?>
Display results:
Array
(
[0] => 155::vbscript::http://www.jb51.net/list/list_114_1.htm
[1] => 1::javascript::http://www.jb51. net/list/list_3_1.htm
[2] => 2::Regular expression::http://www.jb51.net/list/list_6_1.htm
[3] => 3: :Common server software::http://s.jb51.net
)
Array
(
[0] => 155::vbscript::http://www.jb51. net/list/list_114_1.htm
[1] => 3::Common server software::http://s.jb51.net
[2] => 2::Regular expression:: http://www.jb51.net/list/list_6_1.htm
[3] => 1::javascript::http://www.jb51.net/list/list_3_1.htm
)
http://www.bkjia.com/PHPjc/324468.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324468.htmlTechArticleCopy the code as follows: ?php $fruits = array("155::vbscript::http://www .jb51.net/list/list_114_1.htm", "1::javascript::http://www.jb51.net/list/list_3_1.htm", "2::regular expression...