Pad array to the specified length with a value
<? $input = array (12, 10, 9); $result = array_pad ($input, 5, 0); $result = array_pad ($input, -7, -1); $result = array_pad ($input, 2, "noop"); ?>