【发布时间】:2013-05-12 01:32:53
【问题描述】:
假设我在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')“列”。我该怎么做?
谢谢!
【问题讨论】: