Add to an array using array_push
<?php
$search = array(“google”,”yahoo”,”live”,”google”,”yahoo”,”google”);
print_r($search);
print “<br>”;
//lets add a couple of values and print them out again
array_push($search,”google”,”live”);
print_r($search);
?>
The result will be
Array ( [0] => google [1] => yahoo [2] => live [3] => google [4] => yahoo [5] => google )
Array ( [0] => google [1] => yahoo [...]
