Converting a string into an array
<p>I have a string - something like</p>

<pre><code>$string = 'key1=value1, key2=value2, key3=value3';
</code></pre>

<p>How can I get an array from the given string like the following?</p>

<pre><code>$array = array(
    'key1' =&gt; 'value1',
    'key2' =&gt; 'value2',
    'key3' =&gt; 'value3',
);
</code></pre>
