title: Matching key=“value” pattern in PHP string
body: <p>How (easiest way) to convert a string like </p>
  
  <pre><code>oneKey="value 1" key2="value 2" anotherKey="value 3" somekey="value containing spaces"
  </code></pre>
  
  <p>to an array with PHP (regex or not)?</p>
  
  <p>I would like to retreive the values like this : </p>
  
  <pre><code>$myArray['key']
  </code></pre>
  
  <p>so </p>
  
  <pre><code>$myArray['oneKey'] == "value"
  </code></pre>
  
  <p><strong>All keys are different</strong></p>