PHP配列の最大値、最小値のコードを求めます。


 
<?php
$fruits = array("155::vbscript::https://www.jb51.net/list/list_114_1.htm", "1::javascript::https://www.jb51.net/list/list_3_1.htm", "2:: ::https://www.jb51.net/list/list_6_1.htm", "3:: ::http://s.jb51.net");
print_r($fruits);
rsort($fruits,SORT_NUMERIC);
print_r($fruits);
?>
表示結果:Aray([0]=>155::vbscript:https://www.jb51.net/list/list_114_1.httm[1]=>1:javascript:https://www.jb51.net/list/list_3_1.httm[2]=>2:正規表現:https://www.jb51.net/list/list_6_1.httm[3]=>3:サーバ常用ソフトウェア:http://s.jb51.net )Aray([0]=>155::vbscript:https://www.jb51.net/list/list_114_1.httm[1]=>3:サーバ常用ソフトウェア:http://s.jb51.net [2]=>2:正規表現:https://www.jb51.net/list/list_6_1.httm[3]=>1:javascript:https://www.jb51.net/list/list_3_1.httm)