title: Pass variable of a function in the function call
body: <p>So I am writing this php function which reads a csv file and assigns every column to a variable. In the end it needs to calculate the mean of a row. I would like to pass the row (from which the mean has to calculated) in the parameters. </p>
  
  <p>My question is how do I pass a variable <strong>name</strong> (including the dollar sign) of a variable of the function?</p>
  
  <p>I've tried several things like:</p>
  
  <ul>
  <li><p><code>function("$number")    //this just says the variable is undefined, which is true</code></p></li>
  <li><p>Same as above, but without the quotes, does the same thing of course...</p></li>
  <li><code>function("\$number")</code></li>
  </ul>