This is a reflexive reference to a class with a name that matches the value of $b .
Example:
$foo = "Bar"; class Bar { ...code... } $baz = new $foo();
Update only for support: you can also call functions:
function test(){ echo 123; } $a = "test"; $a();
source share