PHP variables to array
<p>I often see or have to convert a bunch of variables into an array like this:</p>

<pre><code>$array = array("description"=&gt;$description, "title"=&gt;$title, "page"=&gt;$page, "author"=&gt;$author);
</code></pre>

<p>Basically, all array keys match the name of the variable that is being passed in. Is there a way to reference a variable name so that it can be passed into the array like so:</p>

<pre><code>$array[varName($description)] = $description;
</code></pre>
