Fill an associative array with values to initialise
<p>I have the following array:</p>

<pre><code>array(
    'elem1', 'elem2', 'elem3'
);
</code></pre>

<p>I want to have the following:</p>

<pre><code>array(
    'elem1' =&gt; 0,
    'elem2' =&gt; 0,
    'elem3' =&gt; 0
);
</code></pre>

<p>is this possible with <code>array_fill</code>? I cant see that it is.</p>

<p>If not, is there a way to do this without iterating over the array?</p>
