fork download
  1. <?php
  2.  
  3. $arr=array(1,2,3,4,5); //5 elements
  4.  
  5. echo array_push($arr,6,7,8,9),PHP_EOL; //now it should echo "9"
  6.  
  7. var_dump($arr);
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
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)
}