Explode after Implode
<p>I have this array, and I've tried to return it like the same way before.</p>

<p>Example:</p>

<pre><code>        $this-&gt;permission_array = array(
                                    'orders'                =&gt; 1,
                                    'orders_Status'         =&gt; 0,
                                    'schools'               =&gt; 0,
                                    'accommodation'         =&gt; 0,
                                    'users'                 =&gt; 1,
                                    'news'                  =&gt; 0,
                                    'blocks'                =&gt; 1,
                                    'settings'              =&gt; 0,
                                    'videos'                =&gt; 1,
                                    );
</code></pre>

<p>after implode it and insert to to database it became like this.</p>

<pre><code>USER_ID     USER_NAME           USER_PERMISSION
---------------------------------------------------
  1302       Othman             1,0,0,0,1,0,1,0,1
</code></pre>

<p>and now if I used <strong>explode</strong> it return as an array but the keys are not the same. how I can transfer these values to the same array not like this array:</p>

<pre><code>[0] =&gt; 1
[1] =&gt; 0
[2] =&gt; 0
[3] =&gt; 0
[4] =&gt; 1
[5] =&gt; 0
[6] =&gt; 1
[7] =&gt; 0
[8] =&gt; 1  
</code></pre>

<p>Is there anyway to change the last array to the first array again? Thank's in advance.  </p>

<h2><em><strong>My Desision is to change the database field and create a new table. Thank you guys</em></strong></h2>
