Divide single value into an array
<p>Is it possible to divide a number into an array based on its value? </p>

<p>For example:</p>

<pre><code>$val = 3;

// do something here to convert the number 3 into 1's

Array
(
    [0] =&gt; 1
    [1] =&gt; 1
    [2] =&gt; 1
) 
</code></pre>
