title: PHP How get and use name function from variable?
body: <pre><code>$function = $_GET["function"];
          if(property_exists($this, $function )){
              echo $this-&gt;function(); // problem is here
          }
  </code></pre>
  
  <p>as we can see we get name function from $_GET and than we check exist function in this class. but we are get problem when we wonna print fucntion name, because we are not know how right print <code>$this-&gt;function()</code> from <code>$function</code>.</p>
  
  <p>Does anyone know how to do it?</p>