title: how to change illegal characters in php extract function?
body: <p>I needed to extract key-value pairs from the following array into variables</p>
  
  <pre><code>$data = array(
      'Quotation.id' =&gt; 1,
      'Quotation.project_id' =&gt; 2
  );
  
  extract($data);
  </code></pre>
  
  <p>Because the <code>.</code> is an illegal character in PHP, no extra variables are defined when I run <code>extract</code>.</p>
  
  <p>I would like to somehow remove the dots and change the entire field into a camelCase. Meaning to say, without knowing in advance the keys in <code>$data</code>, I would like to somehow get back as newly-defined variables:</p>
  
  <pre><code>$quotationId = 1;
  $quotationProjectId = 2;
  </code></pre>
  
  <p>How do I accomplish this? </p>
  
  <p>Please ignore situations where the newly-defined variables may clash with existing variables. Assume this will not happen.</p>