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

你离开我真会死。 提交于 2019-11-28 02:33:38

问题


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.

回答1:


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!




回答2:


It's the scope resolution operator.



来源:https://stackoverflow.com/questions/2588298/whats-the-meaning-of-the-php-token-name-t-paamayim-nekudotayim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!