<?php $a=array("red","green"); array_push($a,"blue","yellow"); print_r($a); ?>
输出
Array ( [0] => red [1] => green [2] => blue [3] => yellow )
参考:
<?php $a=array("red","green"); array_push($a,"blue","yellow"); print_r($a); ?>
输出
Array ( [0] => red [1] => green [2] => blue [3] => yellow )
参考: