title: How to call a function from a string stored in a variable?
body: <p>I need to be able to call a function, but the function name is stored in a variable, is this possible? e.g:</p>
  <pre class="lang-php prettyprint-override"><code>function foo ()
  {
      //code here
  }
  
  function bar ()
  {
      //code here
  }
  
  $functionName = &quot;foo&quot;;
  // I need to call the function based on what is $functionName
  </code></pre>