Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.
like image 844
Alan Storm Avatar asked Apr 06 '10 21:04

Alan Storm


People also ask

What is T_paamayim_nekudotayim?

For those of you who don't know, in PHP T_PAAMAYIM_NEKUDOTAYIM is the token name for :: , the static separator. It's Hebrew for double colon.

What is mean by token in PHP?

Using Token Authentication in your PHP application lets you allow the user to log in with a username and password once, retrieve the access and refresh tokens, and then store those on the client. All future requests will be made using the access token to identify the user.


2 Answers

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!

like image 108
Chad Birch Avatar answered Jan 11 '23 15:01

Chad Birch


It's the scope resolution operator.

like image 42
Klaus Byskov Pedersen Avatar answered Jan 11 '23 17:01

Klaus Byskov Pedersen