Hyvor Developer
  Home   Download   Copy
Code
<?php
$fruits = ['Apple', 'Banana', 'Orange', 'Mango'];

# add new elements
array_push($fruits, 'Pears', 'Watermelon');

var_dump($fruits);
Result