Better way to parse a string on PHP side?
<p>I'm passing a javascript variable in my PHP form that gets passed as formatted below:</p>

<pre><code>&lt;form onsubmit='$("#crop_cords").val($.param(c).toString()); return true;' id="process_image_form" action="&lt;?php echo $_SERVER['PHP_SELF'];?&gt;" method="post"&gt;

crop_cords='x=50&amp;y=50&amp;x2=400&amp;y2=400&amp;w=350&amp;h=350'
</code></pre>

<p>Is there a better way to parse the value for crop_cords on the server side or do I need to use split and/or explode? I was hoping to find a cleaner solution. The result should look like this:</p>

<pre><code>x=50
y=50
x2=400
y2=400
w=350
h=350
</code></pre>
