Took a look around and can't find anything on a double colon.
What does it do?
ive just been looking around and i cant find anything either mate,
also what does this mean:
->
Focus your looking around on the manual. Especially on the chapter on objectsand classes.
What manual?
And I know it has something to do with objects and classes, otherwise, why would I want to know what it is?
I have done the research and I can't find it. Does anyone know?
http://php.net/manual/en - The Manual bookmark it its your one stop of all functions for PHP
also your link http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
So when you did your search, did you type in "constructors"?
Because when I typed the symbol in, I got nothing relevant back.
I appreciate your help!
it is used when you want to reference a method in a class that has been declared static.
Classname::method();
Any changes made will be reflected in every instance of the class.
Originally posted by wheeler08 So when you did your search, did you type in "constructors"? Because when I typed the symbol in, I got nothing relevant back. I appreciate your help!
Considering that it has something to do with objects and constructors, an obvious place to look would have been the Contents page of the manual - funnily enough, it gives the title of Chapter 13 as Classes and Objects which sounds close enough or at least a good place to start.
And Chapter 13 starts
Chapter 13. Classes and Objects Table of Contents class extends Constructors :: parent Serializing objects - objects in sessions The magic functions sleep and wakeup References inside the constructor Comparing objects in PHP 4 Comparing objects in PHP 5
Chapter 13. Classes and Objects
Table of Contents class extends Constructors :: parent Serializing objects - objects in sessions The magic functions sleep and wakeup References inside the constructor Comparing objects in PHP 4 Comparing objects in PHP 5
The rest I leave as an exercise for the reader.
Now that I know I about the "manual" it will be much easier to reference it!
Thanks again 🙂