Push variable to array using name as key?
<p>I have the following variables:</p>

<pre><code>$something = 'whatever';
$hello = array();
$test = 123;
</code></pre>

<p>and I want to push them into an array like this:</p>

<pre><code>$data['something'] = 'whatever';
$data['hello'] = array();
$data['test'] = 123;
</code></pre>

<p>I was wondering if there was some sort of PHP function (similar to <code>array_push()</code>) that can push a variable into an array, using the name of the variable as the key value?</p>
