Jump to content

code explanation


jimfog

Recommended Posts

Look at the following code:

JPluginHelper::importPlugin

What are these 4 dots in the middle?Is this an operator?

Link to comment
Share on other sites

That's 2 colons. Yes, it's an operator.http://www.php.net/manual/en/language.oop5...nekudotayim.php
At last this question i had so long was resolved.I had search the php manual but i had not find anything-probably i did not search enough.Thanks,
Link to comment
Share on other sites

What, you didn't think to search for "Paamayim Nekudotayim"? I'm shocked.
HahahahahhahahaThis a joke i am going to remember for time.Imagine telling that to other people-non computer people.
Link to comment
Share on other sites

  • 2 weeks later...
HahahahahhahahaThis a joke i am going to remember for time.Imagine telling that to other people-non computer people.
Ok, if the double colon is used to access class properties etc then where exactly the this keyword is used?
Link to comment
Share on other sites

The double colon is used when you're accessing static properties which don't change between instances. This is used when you're referring to a specific instance with non-static members, from within the instance. It only applies in the context of the instance, so only used inside methods of the class.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...