Permanent

Permanent

There are also so-called. constant, or character identifiers whose values can not be changed. Permanent is used without a dollar sign at the beginning.

Permanent set by PHP
__FILE__
The name of the script file that is currently being processed.
__LINE__
The line number in the script that is currently being processed.
PHP_VERSION
A string representing the version of the PHP parser.
PHP_OS
The name of the operating system that runs the PHP parser.
TRUE
The logical truth value.
FALSE
Boolean value false.
Constants may be defined by the user using the define (), which takes two parameters: the name of the constant, and the value assigned to it.
Example

<? php
define ( „CONSTANT”, „Hello world.”);
echo CONSTANT;                                                                 // Displays „Hello world.”
?>

Cookies help us deliver our services. By using our services, you agree to our use of cookies. More Info | Close