marcbraulio Posted March 3, 2012 Share Posted March 3, 2012 Hello there, Could anyone tell me why you are not allowed to use "Default" as a function name in php? I searched around and couldn't get a straight answer. Quote Link to comment https://forums.phpfreaks.com/topic/258212-why-are-you-not-allowed-to-use-default-as-a-function-name/ Share on other sites More sharing options...
KevinM1 Posted March 3, 2012 Share Posted March 3, 2012 Default is a PHP keyword. http://php.net/manual/en/reserved.keywords.php Quote Link to comment https://forums.phpfreaks.com/topic/258212-why-are-you-not-allowed-to-use-default-as-a-function-name/#findComment-1323587 Share on other sites More sharing options...
marcbraulio Posted March 3, 2012 Author Share Posted March 3, 2012 Understood, thank you! Quote Link to comment https://forums.phpfreaks.com/topic/258212-why-are-you-not-allowed-to-use-default-as-a-function-name/#findComment-1323588 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.