title: Split associative array based on keys
body: <p>I have the following array</p>
  
  <pre><code>array (
      [customer_name] =&gt;{customer1,customer2}
      [phone] =&gt; {123456,123456}
      [email] =&gt; {test@example.com,test2@example.com}
      [project] =&gt;  {"Project A","Project B"}
      [property] =&gt; {A1,A2}
      [amount] =&gt;  {100.00,2000.00}
    )
  </code></pre>
  
  <p>I want to split the array based on keys and assign to different variables. For example </p>
  
  <pre><code>$customer_name=array(customer1,customer2)
  $phone=array(123456,123456)
  // and so on
  </code></pre>
  
  <p>Please help. Thanks in advance.</p>