Invalid or unexpected token on a very simple function

Just a non-ascii-character \xe2 at the end of your function braces.

Open developer tool > console and paste your code. You will see a red dot over there which indicates an invalid character.

Just remove that invalid character (check image below).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)