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