我正在一个网站上工作,我们需要删除类型为整数的数组的索引。你有什么想法或建议。我的数组看起来像这样:
Array
(
[0] => first
[first] => second
[1] => second
[second] => second
[2] => third
[third] => third
[3] => forth
[forth] => v
[4] => fifth
[fifth] => fifth
)
我们如何从数组中删除整数索引。还有一点需要注意的是,我们没有静态数组,我们不知道有多少索引。
需要这样:
Array
(
[first] => second
[second] => second
[third] => third
[forth] => v
[fifth] => fifth
)