explode string and set key for array with text that is in front of the delimiter?
<p>Is there a way to take an input like this:</p>

<pre><code>|
testing==one two three
|
setting==more testing
|
</code></pre>

<p>and get something like this</p>

<pre><code>array['testing'] = "one two three";
array['setting'] = "more testing"
</code></pre>

<p>Right now I'm just exploding the string and setting the array with numbered index, but I'd like the user to be able to enter the items in any order and be able to use the array with keys from the first value.</p>

<pre><code>function get_desc_second_part(&amp;$value)  {
  list(,$val_b) = explode('==',$value);
  $value = trim($val_b);
}
</code></pre>

<p>Thanks!</p>
