PHP error: expecting T_PAAMAYIM_NEKUDOTAYIM

I ran across this error the other day while setting up a nested foreach loop. When looking at the error logs all I found was expecting T_PAAMAYIM_NEKUDOTAYIM. Which was not very helpful. If you find that you have this error, try looking for a missing dollar sign “$” on one of your variables.

Hope this helps, happy coding!

Leave a Reply