Darkness Soul Posted March 31, 2009 Share Posted March 31, 2009 Hi guys... I don't have a clue of how to search for "::" topics. I tryed the :: with few keywords, without sucess. I'm used to "->", and I just step in this "::", so.. what the heck is that? Is is an alternative to "->"? If not, what is it used for? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/151951-solved-class-the-thing/ Share on other sites More sharing options...
Maq Posted March 31, 2009 Share Posted March 31, 2009 Please read this, it will explain everything: PHP5 OOP Quote Link to comment https://forums.phpfreaks.com/topic/151951-solved-class-the-thing/#findComment-797949 Share on other sites More sharing options...
lostnucleus Posted March 31, 2009 Share Posted March 31, 2009 :: is called "scope resolution operator" go ahead google this now instead of :: , its used for static function , static variables , constant in a class , plus calling public function from outside the class, and also parent::function() , when subclass calles a perent function , or simpley self::function() in case of static function. Quote Link to comment https://forums.phpfreaks.com/topic/151951-solved-class-the-thing/#findComment-797957 Share on other sites More sharing options...
Darkness Soul Posted March 31, 2009 Author Share Posted March 31, 2009 Interesting. Thanks, both. I got the idea, now just need to use and evolve. :'D D.S. Quote Link to comment https://forums.phpfreaks.com/topic/151951-solved-class-the-thing/#findComment-797976 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.