我有这个代码
$array = array('o' => 'one', 't' => 'three', 'f' => 'four');
array_push($array, array('s' => 'six'));
print_r($array);
将新的键和值插入到数组中,但是当我打印新的 $array 时它返回了这个
Array ( [o] => one [t] => three [f] => four [0] => Array ( [s] => six ) )
我需要像这样回来
Array ( [o] => one [t] => three [f] => four [s] => six )
如何[0] => Array ()
从数组中删除?