What is T_PAAMAYIM_NEKUDOTAYIM in PHP?

devquora
devquora

Posted On: Apr 15, 2024

 

    1 Answer Written

  •  devquora
    Answered by Kanak

    In PHP, T_PAAMAYIM_NEKUDOTAYIM denotes a syntax error while doing any task. The reason for getting this error is only one. Paamayim Nekudotayim in Hebrew means double colon:: like as a sample error you may see

    $ PHP - r : :

    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

    In short, when there is an unexpected order then you can receive this error message. In terms of PHP, everything is broken from symbols to tokens like T_ELSE, T_SL, T_STRING, etc. Every PHP version has a different saying error message but the difference is slight and unnoticeable. The PHP and some other languages use a double colon for the scope resolution. So, in short, whenever you receive this error message it means that PHP is reminding you to put a double colon.

Related Questions

Please Login or Register to leave a response.

Related Questions

PHP Interview Questions

What is the difference between == and === operator in PHP ?

In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...

PHP Interview Questions

What is session in PHP. How to remove data from a session?

What is session in PHP. How to remove data from a session?..