Skip to content

T_PAAMAYIM_NEKUDOTAYIM

by John Lamansky on October 31st, 2006

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.

[Read more at source]

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.)

From → Troubleshooting

7 Comments
  1. 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.

  2. James Healey permalink

    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!

  3. David permalink

    Thank you so much!

  4. Oran permalink

    “Paamayim Nekudotayim” stands for “double colon” in Hebrew, aka ::
    That’s what happens when both PHP3 developers are Israelis.

  5. Yep, the dollar sign was missing, Perfect Post!

  6. 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?

Trackbacks & Pingbacks

  1. php: holy T_PAAMAYIM_NEKUDOTAYIM error batman | breaker of stuff, destroyer of things

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS