假设我在 php 中有这样一个数组:
$ray =
Array
(
[0] => Array
(
[id] => 1
[0] => 1
[ip] => 127.0.0.1
[1] => 127.0.0.1
[username] => local_me
[2] => local_me
[last_visit] => 2013-05-17 02:12:07
[3] => 2013-05-17 02:12:07
)
[1] => Array
(
[id] => 2
[0] => 2
[ip] => 127.2.2.3
[1] => 127.2.2.3
[username] => Anonymous42
[2] => Anonymous42
[last_visit] => 2013-05-16 16:07:46
[3] => 2013-05-16 16:07:46
)
)
我想删除ip
这个数组的所有元素的(和'1')“列”。我怎样才能做到这一点?
谢谢 !