how to get associative array from string
<p>I have one string like:- </p>

<pre><code>$attributes = "id=1 username=puneet mobile=0987778987 u_id=232";
</code></pre>

<p>Now, I want to get it in following associative array format:-</p>

<pre><code>$attributes{'id' =&gt; 1, 'username' =&gt; puneet, 'mobile' =&gt; 0987778987, 'u_id' =&gt; 232}
</code></pre>

<p>Note:- These all values are separated by space only. Any help will be appreciable.</p>

<p>Thanks in advance</p>
