?php
$array = array("php", 11, '', 12, "脚本之家",13,"green",2021,"mysql","14",15);
function filter_number($value){
if(is_numeric($value)){
return TRUE;
}
}
$result=array_filter($array,"filter_number");
var_dump($result);
?>
?php
print_r($r+e); // 输出span style="font-family: Simsun;font-size:16px; ">Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 ) /span>
print "br />";
print_r(array_merge($r,$e)); // 输出span style="font-family: Simsun;font-size:16px; ">Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 [8] => 9 )/span>
?>
到此这篇关于php提取数字拼接数组的具体操作的文章就介绍到这了,更多相关php如何提取数字拼接数组内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!