Why I love PHP
While working on PHP_Depend's parser I realized one major reason Why I love PHP, it's the flexibility of language. Even if you think you now know all ways to solve a problem, there is always one more way to solve it.
class f {
function bar() { echo __METHOD__, '()', PHP_EOL; }
function __toString() { return 'v'; }
}
class v { function __toString() { return 'c'; } }
class m { function __toString() { return 'bar'; } }
$c = 'f';
$${'v'} = new ${(string) new ${$v = 'v'}()}();
$$$$$$v->{(string) new m()}();
But to be serious, don't be worried, if you don't get it.