Referencing a parameter in a function directly
<p>I'm trying to edit a piece of code written by a development company, which uses the following construct a lot:</p>

<pre><code>$dbcol = grabdata($strSqlB,'','','','','','',2);
</code></pre>

<p>Is there really not an easier way to do this? The code is completely unreadable. </p>

<p>I would have thought that the following would work, and work well for readability:</p>

<pre><code>$vars = array("parameter1" =&gt; $strSqlB, "parameter7" =&gt; 2);
$dbcol = grabdata($vars);
</code></pre>

<p>is there anything that needs to be refactored in the function itself to make this work? Is there anything else clever we could do to make this less of a clusterfudge? </p>
