<?php $a=array("red","green"); array_push($a,"blue","yellow"); print_r($a); ?>
Export
Array ( [0] => red [1] => green [2] => blue [3] => yellow )
reference:
https://www.w3school.com.cn/php/php_ref_array.asp
<?php $a=array("red","green"); array_push($a,"blue","yellow"); print_r($a); ?>
Export
Array ( [0] => red [1] => green [2] => blue [3] => yellow )
reference:
https://www.w3school.com.cn/php/php_ref_array.asp