我在添加到数组末尾时遇到了困难。不知道该怎么做。请帮忙。
$person = array();
$person = array("name"=>"tom", "age"=>20, "height"=>180);
如何添加到数组的末尾?我想在现有数组的末尾添加“weight”=>120。
谢谢
最佳答案
关于PHP 如何添加到数组末尾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6797641/