Cell0518 Posted August 18, 2006 Share Posted August 18, 2006 I know this is an odd question, but after reading some code (Gallery 2), I see:[code]GalleryCoreApi::requireOnce([/code]What does the :: between the GalleryCoreApi mean? The Core Api is a class and I understand requireOnce, but usually it's require_once(....is :: the same as -> ?Thanks,CL. Quote Link to comment https://forums.phpfreaks.com/topic/17956-meaning/ Share on other sites More sharing options...
wildteen88 Posted August 18, 2006 Share Posted August 18, 2006 The :: is to do with OOP and its called the [url=http://uk.php.net/manual/en/keyword.paamayim-nekudotayim.php]Scope Resolution Operator[/url].It allows you to call objects/methods from within a class. Quote Link to comment https://forums.phpfreaks.com/topic/17956-meaning/#findComment-76836 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.