Advertisement
krot

T_PAAMAYIM_NEKUDOTAYIM

Jun 27th, 2017
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1.  
  2.   The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is a token that allows access to static, constant, and overridden properties or methods of a class.
  3.  
  4.     When referencing these items from outside the class definition, use the name of the class.
  5.  
  6.     As of PHP 5.3.0, it's possible to reference the class using a variable. The variable's value can not be a keyword (e.g. self, parent and static).
  7.  
  8.     Paamayim Nekudotayim would, at first, seem like a strange choice for naming a double-colon. However, while writing the Zend Engine 0.5 (which powers PHP 3), that's what the Zend team decided to call it. It actually does mean double-colon - in Hebrew!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement