how to append data in existing array without overwrite whole array [closed]

微笑、不失礼 提交于 2019-12-05 19:03:01

You have a few options:

Good luck!

after returning another value,using array_merge will fix this.

example:

$result_array=array_merge($arr1,$arr2);

If you want to append something to a PHP array, you can use $myArray[] = "new value"

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!