Saturday, August 25, 2012

PHP Parse error: syntax error, unexpected '=' in

I recently get the following error in PHP:

Parse error: syntax error, unexpected '=' in .... line 109

apparently it is because I created a variable with "-" in it.

To resolve the issue, I rename the variable from "$cart-content" to "$cart_content"

No comments:

Post a Comment