jonniejoejonson Posted September 2, 2009 Share Posted September 2, 2009 What does :: mean... please can you give a simple example... kind regards J Quote Link to comment https://forums.phpfreaks.com/topic/172816-what-does-mean/ Share on other sites More sharing options...
trq Posted September 2, 2009 Share Posted September 2, 2009 It enables you to access static methods and properties from within a class. See static. Quote Link to comment https://forums.phpfreaks.com/topic/172816-what-does-mean/#findComment-910843 Share on other sites More sharing options...
JonnoTheDev Posted September 2, 2009 Share Posted September 2, 2009 It is a call to a class method (usually static) class foo { static function bar() { print "hello world"; } } foo::bar(); Quote Link to comment https://forums.phpfreaks.com/topic/172816-what-does-mean/#findComment-910844 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.