Add new values to the beginning of the array by using a negative value for $size:
<?php
$birds = array('a', 'b', 'c', 'd');
$more_birds = array_pad($birds, -6, 'some bird');
printf("%s", var_export($more_birds, TRUE));
?>
Related examples in the same category