简单教程
提交运行
代码编辑器:
<?php $a = array("red","green"); print_r(array_pad($a,-5,"blue"));
运行结果: