I would like to call to a static method in such a way that class name and method name are variables.
Example:
class QQQ {
public function www($x) {
echo $x;
}
}
$q = 'QQQ';
$w = 'www';
$q::$w(7); // this is what I am trying to do but it throws an error.
Thoughts?