array_unshift() function shifts the array to the right.
//Its syntax is: int array_unshift(array array, mixed var1 [, mixed var2. . .])
//You can append one or several values simultaneously.
<?
$languages = array ("French", "Italian");
array_unshift ($languages, "Russian", "Chinese");
print_r($languages);
?>
Related examples in the same category