Is it possible to chain static methods together using a static class? Say I wanted to do something like this:
$value = TestClass::toValue(5)::add(3)::subtrac
The best that can be done
class S { public static function __callStatic($name,$args) { echo 'called S::'.$name . '( )'; return '_t'; } } $_t='S'; ${${S::X()}::F()}::C();
'; return '_t'; } } $_t='S'; ${${S::X()}::F()}::C();