<?php
$field = ['uid' => 1, 'time' =>1,'content'=>1,'auto'=>"0"];
array_push($field,['pic_url'=>'test']);
var_dump($field);
?>
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- array(5) {
["uid"]=>
int(1)
["time"]=>
int(1)
["content"]=>
int(1)
["auto"]=>
string(1) "0"
[0]=>
array(1) {
["pic_url"]=>
string(4) "test"
}
}
preferences:
175.92 ms | 404 KiB | 183 Q