有没有一种简单的方法可以使用PHP从数组中删除元素,这样foreach ($array)就不再包含该元素了?
foreach ($array)
我认为设置它null会这样做,但显然它不起作用.
null
php arrays unset
arrays ×1
php ×1
unset ×1