1Not exactly the issue you had but the same error for people searching.
2
3This happened to me when I spent too much time on JavaScript.
4
5Coming back to PHP I concatenated two strings with "+" instead of "." and got that error.
1when this error is occuring make sure not to concatenate
2anything like $fname+" "+$lname, we get error when we do
3that, so when i did like $fname,$lname i got it perfect.