T_PAAMAYIM_NEKUDOTAYIM

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!

Was this post helpful? Share it!

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

    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

    Thank you so much!

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

  5. Oran

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

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

  7. Sam

    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?

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>