array_unshift( ) function pushes value onto the start of the array
int array_unshift ( array &arr, mixed var [, mixed ...] )
<?
$firstname = "Johnny";
$names = array("Timmy", "Bobby", "Sam", "Tammy", "Joe");
array_unshift($names, $firstname);
?>
Related examples in the same category