Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<pre>
<?php  
$fruits = array("Apple", "Banana", "Cherry");
array_push($fruits, "Orange", "Kiwi", "Lemon");
//Output the array:
var_dump($fruits);
?>
</pre>
</body>
</html>
array(6) {
  [0]=>
  string(5) "Apple"
  [1]=>
  string(6) "Banana"
  [2]=>
  string(6) "Cherry"
  [3]=>
  string(6) "Orange"
  [4]=>
  string(4) "Kiwi"
  [5]=>
  string(5) "Lemon"
}