|
|
constant()We can get the value of a constant by using constant() function in PHP
constant(string);
Let us try one example.
define('PATH',"J:/php_files/");
echo constant('PATH'); // output is J:/php_files/
If the constant does not exist then warning message will be generated while using this function
| |
| |
|
|
|
|
|