title: php : convert serialized to array
body: <p>I have a form sending a post request to server . there is a hidden input in form containing a serialized string value :<br/>
  <code>"menuItem[2]=null&amp;menuItem[4]=2&amp;menuItem[6]=4&amp;menuItem[5]=2&amp;menuItem[7]=null&amp;menuItem[3]=null"</code><br/></p>
  
  <p>I'm trying to convert this string to an array using php:<br/>
     <code>[ 2 =&gt; null, 4 =&gt; 2, 6 =&gt; 4 , ...]</code>
  <br/>is there any neat way to do that?</p>