<?php $arr=array(1,2,3,4,5); //5 elements echo array_push($arr,6,7,8,9),PHP_EOL; //now it should echo "9" var_dump($arr);
Standard input is empty
9 array(9) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) [6]=> int(7) [7]=> int(8) [8]=> int(9) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!