Source Code:
(back to article)
<?php $colors = array('red', 'green', 'blue'); $new_array = array_pad($colors, -5, 'black'); print_r($new_array); ?>
Result:
Report an issue