note 38587 deleted from function.get-defined-constants by didou
| From: | didou@php.net | Date: | Mon, 29 Dec 2003 09:02:57 +0000 |
| Subject: | note 38587 deleted from function.get-defined-constants by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62626@lists.php.net to get a copy of this message | ||
Note Submitter: Tristan@nuke-board.com
----
The following code can be used to display the values returned by get_defined_constants in a more
organized manner.
<?php
$constants = get_defined_constants();
foreach($constants as $name => $value)
{
echo($name.' = '.$value.'<br />');
}
?>