Parse error: parse error, unexpected ‘[‘, expecting T_PAAMAYIM_NEKUDOTAYIM in _____ on line 30
T_PAAMAYIM_NEKUDOTAYIM is Hebrew, and it refers to PHP’s scope resolution operator (“::”). If you get this message, it means PHP sees a class name and expects you to access it with the scope resolution operator.
In my case, the problem was that I was referencing a PHP variable without a dollar sign, so PHP thought it was a class name. Oops!
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!
Pingback: php: holy T_PAAMAYIM_NEKUDOTAYIM error batman | breaker of stuff, destroyer of things
“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!
T_PAAMAYIM_NEKUDOTAYIM why did they give it that error name anyway?