T_PAAMAYIM_NEKUDOTAYIM Error

Associate
Joined
4 Mar 2007
Posts
315
Location
United Kingdom
On my server when I try and test my web application I have the following error appearing:

syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

I know this is apparent with the use of '::'

However I do require it as it's used in my code $system::getInstance();

any ideas?
 
It's hard to tell without seeing any code, I use $classNameInVariable::Method quite often and I've never seen that error message.

What version of PHP are you using? You've only been able to use that syntax since PHP 5.3.0 in older versions you need to use call_user_func.
 
PAAMAYIM_NEKUDOTAYIM is the hebrew name for a ::

You have probably not closed {}, (), "", '', forgotten a ; or missed a comma in an array?

Thanks I checked through, it was a syntax error in a completely different file called before hand. Either way that's the first time I came across this error haha!
 
Back
Top Bottom