是否可以从爆炸中的特定数组中计数?
例子:
<?php
$number='This is the number of,5,6,7,8,9';
$collect=explode(",",$number);
print_r($collect);
?>
输出将是:
Array ( [0] => This is the number of [1] => 5 [2] => 6 [3] => 7 [4] => 8 [5] => 9 )
但我需要忽略第一个数组。意思是,我只想计算5,6,7,8,9
并忽略"This is the number of"
。