An unexpected WHAT?

I’ve just been doing some PHP programming and the following error came up:

Parse error: parse error, unexpected ‘)’, expecting T_PAAMAYIM_NEKUDOTAYIM in /home/foo/bar/baz.php on line 81

Turns out that Paamayim Nekudotayim means ‘double colon’ in Hebrew and is the official name of the scope resolution operator. I guess it’s the PHP developers’ idea of a joke…

Anyway, the cause of the error in my case was a dollar sign missing from the front of a variable.

If you enjoyed this post, please share it!

    Leave a Reply

    Your email address will not be published. Required fields are marked *