8
我有此数组:重新排列数组的键PHP
Array
(
[15] => 13.1
[16] => Mark one answer
[19] => You see a car on the hard shoulder of a motorway with a HELP pennant displayed. This means the driver is most likely to be
[20] => a disabled person first aid trained
[21] => a foreign visitor
[22] => a rescue patrol person
[25] => DES s15, HC r278);
我如何得到它的键值从0排序? 得到这个:我知道有一个函数,但我的头被烧毁,排序函数不符合我的需要,因为他们重新排列值,我需要它们被保存。
Array
(
[0] => 13.1
[1] => Mark one answer
[2] => You see a car on the hard shoulder of a motorway with a HELP pennant displayed. This means the driver is most likely to be
[3] => a disabled person first aid trained
[4] => a foreign visitor
[5] => a rescue patrol person
[6] => DES s15, HC r278);
:)我讨厌当我胸围我的头就像一个小时知道这是简单而不得不来这里问。非常感谢。 – Sebastian 2012-01-10 02:09:47
它看起来像一个'trim'被应用=)'array_map('trim',...)'到最大值。 – Rudie 2012-01-10 02:12:32
@Sebastian不用担心 – Ben 2012-01-10 05:23:49