How to merge 2 array to result is a array?
<p>I have a sample code</p>

<pre><code>$array1 = ("attr1", "attr2", "attr3");
$array2 = ("val1", "val2", "val3");
array = array_merge($array1, $array2);
</code></pre>

<p>when i <code>print_r($array)</code> is result is</p>

<pre><code>array([0] =&gt; val1 [1] =&gt; val2 [2] =&gt; val3)
</code></pre>

<p>How to fix this error to result is:</p>

<pre><code>array(['attr1'] =&gt; val1 ['attr2'] =&gt; val2 ['attr3'] =&gt; val3)
</code></pre>
