考慮以下數組:更改數組索引PHP
array(4) {
[32]=>
string(1) "1"
[33]=>
string(1) "0"
[34]=>
string(1) "2"
[35]=>
string(1) "1"
}
是否有bult函數來重新安排這樣的指標?
array(4) {
[0]=>
string(1) "1"
[1]=>
string(1) "0"
[2]=>
string(1) "2"
[3]=>
string(1) "1"
}
'的print_r(array_values($ your_array));' –