Home Top Ad

PHP Parse error: syntax error, unexpected T_PUBLIC [resolved]

Share:

PHP Parse error: syntax error, unexpected T_PUBLIC 

The public the keyword is used only when declaring a class method.
Since you're declaring a simple function and not a class you need to remove public from your code.
Also, verify that your function is closed without any errors.

Aucun commentaire