PHP数组怎么获取最大值
preg_match_all("/src=\"\/?(.*?)\"/",$_content,$pos);print_r($pos);打印结果是:Array([0]=>Ar...
preg_match_all("/src=\"\/?(.*?)\"/", $_content, $pos);
print_r($pos);
打印结果是:
Array
(
[0] => Array
(
[0] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_52942.jpg"
[1] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_96704.jpg"
[2] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_22153.jpg"
[3] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_62245.jpg"
[4] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001240_26476.jpg"
)
[1] => Array
(
[0] => lib/kindeditor/php/../attached/image/20140811/20140811001239_52942.jpg
[1] => lib/kindeditor/php/../attached/image/20140811/20140811001239_96704.jpg
[2] => lib/kindeditor/php/../attached/image/20140811/20140811001239_22153.jpg
[3] => lib/kindeditor/php/../attached/image/20140811/20140811001239_62245.jpg
[4] => lib/kindeditor/php/../attached/image/20140811/20140811001240_26476.jpg
)
)
我想获取
[0] => lib/kindeditor/php/../attached/image/20140811/20140811001239_52942.jpg
[1] => lib/kindeditor/php/../attached/image/20140811/20140811001239_96704.jpg
[2] => lib/kindeditor/php/../attached/image/20140811/20140811001239_22153.jpg
[3] => lib/kindeditor/php/../attached/image/20140811/20140811001239_62245.jpg
[4] => lib/kindeditor/php/../attached/image/20140811/20140811001240_26476.jpg
这一段的最大值应该怎么做 展开
print_r($pos);
打印结果是:
Array
(
[0] => Array
(
[0] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_52942.jpg"
[1] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_96704.jpg"
[2] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_22153.jpg"
[3] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001239_62245.jpg"
[4] => src="/lib/kindeditor/php/../attached/image/20140811/20140811001240_26476.jpg"
)
[1] => Array
(
[0] => lib/kindeditor/php/../attached/image/20140811/20140811001239_52942.jpg
[1] => lib/kindeditor/php/../attached/image/20140811/20140811001239_96704.jpg
[2] => lib/kindeditor/php/../attached/image/20140811/20140811001239_22153.jpg
[3] => lib/kindeditor/php/../attached/image/20140811/20140811001239_62245.jpg
[4] => lib/kindeditor/php/../attached/image/20140811/20140811001240_26476.jpg
)
)
我想获取
[0] => lib/kindeditor/php/../attached/image/20140811/20140811001239_52942.jpg
[1] => lib/kindeditor/php/../attached/image/20140811/20140811001239_96704.jpg
[2] => lib/kindeditor/php/../attached/image/20140811/20140811001239_22153.jpg
[3] => lib/kindeditor/php/../attached/image/20140811/20140811001239_62245.jpg
[4] => lib/kindeditor/php/../attached/image/20140811/20140811001240_26476.jpg
这一段的最大值应该怎么做 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询