好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

php array_filter除去数组中的空字符元素,需要的朋友

除去数组中的空字符元素

复制代码 代码如下:

<?php $str1_array=array('','','http://HdhCmsTestjb51.net','','1654',''); $str1_array=array_filter($str1_array); print_r($str1_array); ?>

显示结果:

复制代码 代码如下:

Array ( [0] => [2] => http://HdhCmsTestjb51.net [4] => 1654 )

查看更多关于php array_filter除去数组中的空字符元素,需要的朋友的详细内容...

  阅读:46次