class Foo {
public function bar($thing) {
return $thing * 2;
}
}
echo Foo::bar::(4);
The code above shows this error:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
Could you tell me why? I am new to php. Thank you very much!