T_PAAMAYIM_NEKUDOTAYIM

Parse error: syntax error, unexpected ‘)’, expecting T_PAAMAYIM_NEKUDOTAYIM in …

I encountered this weird PHP error today; if it happens to you it’s probably because you forgot to declare a variable by leaving off the ‘$’ prefix (e.g., ‘myVar’ instead of ‘$myVar’). More info here: http://en.wikipedia.org/wiki/Paamayim_Nekudotayim.

Obviously, it’s a fairly cryptic error message; albeit its cause is simple to resolve. It is exactly these types of things that makes it easier to understand why so many developers dislike PHP – it doesn’t keep me from using it though.