Get an associative array with the names of all the constants and their values in PHP
Description
The following code shows how to get an associative array with the names of all the constants and their values.
Example
// w w w. j av a 2 s . c o m
// get_defined_constants() Example
<?php
print_r(get_defined_constants());
?>
The code above generates the following result.