PHP array_fill but with repeating pattern
<p>Is there a built-in function or otherwise elegant way of prefilling an array with a repeating pattern of values.</p>

<p>Essentially what I require is a combination of the <code>array_fill</code> and <code>str_repeat</code>.</p>
