开发者

What's the meaning of the PHP token name T_PAAMAYIM_NEKUDOTAYIM? [duplicate]

开发者 https://www.devze.com 2022-12-25 16:33 出处:网络
This question already has answers here: 开发者_开发技巧 PHP expects T_PAAMAYIM_NEKUDOTAYIM? (11 answers)
This question already has answers here: 开发者_开发技巧 PHP expects T_PAAMAYIM_NEKUDOTAYIM? (11 answers) Closed 6 years ago.

What's the story behind the ::'s sometimes token name

T_PAAMAYIM_NEKUDOTAYIM

I'm mainly interested in knowing if

  1. This is an abbreviation for something else.
  2. This is a phrase in a language other than English, and if so what's the language and what's a rough translation.
  3. This is some obscure-to-me programming term.
  4. Drunk developers.


From the PHP docs:

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!


It's the scope resolution operator.

0

精彩评论

暂无评论...
验证码 换一张
取 消