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.)
Subscribe
Jeremy responded on 02 Nov 2006 at 1:22 am #
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.
James Healey responded on 11 Nov 2006 at 4:31 pm #
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!
David responded on 24 Oct 2007 at 2:57 pm #
Thank you so much!
php: holy T_PAAMAYIM_NEKUDOTAYIM error batman | breaker of stuff, destroyer of things responded on 06 Aug 2008 at 9:36 am #
[...] can find out more here: http://www.johnlamansky.com/blog/t_paamayim_nekudotayim/ Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]
Oran responded on 20 Sep 2008 at 4:27 am #
“Paamayim Nekudotayim” stands for “double colon” in Hebrew, aka ::
That’s what happens when both PHP3 developers are Israelis.