I have a class Sections:
class Sections {
public static function get($name) {
//
}
}
And I would like to call the static function get() from it with a variable (http://php.net/manual/en/functions.variable-functions.php):
$section = 'Sections::get';
$section('body');
But it gives me a Fatal error: Call to undefined function Sections::get()
Is it possible to call a static function in this way?
Thanks!