Home W3Schools PHP Parse error: syntax error, unexpected T_PUBLIC [resolved] PHP Parse error: syntax error, unexpected T_PUBLIC [resolved] Admin 13:39 0 comments Share: Facebook Twitter Google+ Pinterest Whatsapp 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