anujgarg Posted January 9, 2009 Share Posted January 9, 2009 which one is possible and why. Also, which one is not possible and why: defining static function inside a static class or defining static function inside a non-static class or defining non-static function inside a static class TIA Anuj Quote Link to comment https://forums.phpfreaks.com/topic/140131-static-class/ Share on other sites More sharing options...
JonnoTheDev Posted January 9, 2009 Share Posted January 9, 2009 Static functions, variables can be defined anywhere. The static operator cannot be used on a class definition so i'm unsure about your definition of a static class. Quote Link to comment https://forums.phpfreaks.com/topic/140131-static-class/#findComment-733182 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.