title: how to create array with key name same as $variable name assigning to array?
body: <p>I am assigning an array with the $variables(have different name) that have some values like:</p>
  
  <pre><code>array($one, $two, $three);
  </code></pre>
  
  <p>now i am a searching a way that is there any way to assign this above array with key name same as variable name directly, finally i want to make this array like:</p>
  
  <pre><code>array(
        "one" =&gt; $one, 
        "two" =&gt; $two, 
        "three" =&gt; $three
  )
  </code></pre>
  
  <p>if this can possible at the time of assigning array with the variable then i would be good for me then i can easily extract() this array and i don't have to do operation to open this array and assigning these values with the $variable name, if any function() exist for that then it will be good, please help if any one knows</p>