T_PAAMAYIM_NEKUDOTAYIM
Parse error: parse error, unexpected ‘[', expecting T_PAAMAYIM_NEKUDOTAYIM in _____ on line 30
What a strange PHP error message indeed! I did some googling... er, that is, I searched the web using Google -- in case there are any Google lawyers reading
... and I found the following:
Turns out it's Hebrew for '::'. You learn something new every day.
On the line number to which the error message referred, I was referencing a PHP variable without a dollar sign. Oops.
I don’t know what “paamayim nekudotayim” or two colons has to do with it though. (Shrug.)
7 Comments
→
T_PAAMAYIM_NEKUDOTAYIM sounds a bit like Indonesian to me. But then again, I’ve seen an Israeli folk song called “Mayim, Mayim”, so that’s probably related.
Wow, thank you. Second hit on Google for T_PAAMAYIM_NEKUDOTAYIM and you provided a perfect answer – I’d forgotten a $ on the class variable while trying to unset it… woops!
Cheers!
Thank you so much!
“Paamayim Nekudotayim” stands for “double colon” in Hebrew, aka ::
That’s what happens when both PHP3 developers are Israelis.
Yep, the dollar sign was missing, Perfect Post!
I relieved this error when trying to unset a constant and did think to mysql WTF!
T_PAAMAYIM_NEKUDOTAYIM why did they give it that error name anyway?