Having the variable names in func_get_args() <p>As this function can take unknown numbers of parameters:</p> <pre><code>function BulkParam(){ return func_get_args(); } </code></pre> <p>A <code>print_r</code> will print only the values, but how i can retrieve the variable names as well as the array key? For example:</p> <pre><code>$d1 = "test data"; $d2 = "test data"; $d3 = "test data"; print_r(BulkParam($d1, $d2, $d3)); </code></pre> <p>It will print this:</p> <pre><code>Array ( [0] =&gt; test data [1] =&gt; test data [2] =&gt; test data ) </code></pre> <p>But i want to have the variables name as the index name or key name of all arrays. Then the array would look like this:</p> <pre><code>Array ( [d1] =&gt; test data [d2] =&gt; test data [d3] =&gt; test data ) </code></pre>