TomTees Posted October 29, 2010 Share Posted October 29, 2010 What do 2 colons together ( mean?? TomTees Quote Link to comment https://forums.phpfreaks.com/topic/217172-what-is/ Share on other sites More sharing options...
trq Posted October 29, 2010 Share Posted October 29, 2010 They allow you to access the static properties & methods of a class. Quote Link to comment https://forums.phpfreaks.com/topic/217172-what-is/#findComment-1127855 Share on other sites More sharing options...
TomTees Posted October 29, 2010 Author Share Posted October 29, 2010 They allow you to access the static properties & methods of a class. So -> is to access instance properties and methods and :: is to access static properties and methods? TomTees Quote Link to comment https://forums.phpfreaks.com/topic/217172-what-is/#findComment-1127859 Share on other sites More sharing options...
Anti-Moronic Posted October 29, 2010 Share Posted October 29, 2010 :: accesses a 'class' static methods and properties -> is used to access an 'objects' methods and properties see here: http://stackoverflow.com/questions/1245121/difference-between-and-in-php-mysqli-oop Hope that helps. Quote Link to comment https://forums.phpfreaks.com/topic/217172-what-is/#findComment-1127861 Share on other sites More sharing options...
TomTees Posted October 29, 2010 Author Share Posted October 29, 2010 :: accesses a 'class' static methods and properties -> is used to access an 'objects' methods and properties Ah, said better than me! see here: http://stackoverflow.com/questions/1245121/difference-between-and-in-php-mysqli-oop Hope that helps. Yes, good link! Thanks, TomTees P.S. How do you mark something "Solved"?? Quote Link to comment https://forums.phpfreaks.com/topic/217172-what-is/#findComment-1127866 Share on other sites More sharing options...
trq Posted October 29, 2010 Share Posted October 29, 2010 P.S. How do you mark something "Solved"?? Should be a green button in the bottom left corner (or maybe top right, its bottom left for me - needless to see, its big and green). Quote Link to comment https://forums.phpfreaks.com/topic/217172-what-is/#findComment-1127869 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.