gpt4 book ai didi

php - 重新排列数组键 php

转载 作者:可可西里 更新时间:2023-10-31 22:53:51 26 4
gpt4 key购买 nike

<分区>

我有这个数组:

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);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com