array_push

It pushes one or more elements onto the end of array

Example

<?php
echo “<pre>”;
$array = array(“PHP”, “ASP”);
array_push($array, “JSP”, “VB”);
print_r($array);
?>

Output

Array
(
[0] => PHP
[1] => ASP
[2] => JSP
[3] => VB
)