![]() |
|
(PHP 4 >= 4.1.0, PHP 5)
get_defined_constants -- Restituisve un array associativo con i nomi di tutte le costanti ed i loro valoriQuesta funzione restituisce i nomi ed i valori di tutte le costanti attualmente definite. Queste includono sia quelle create dalle estensioni sia quelle create con la funzione define().
Ad esempio la linea seguente:
<?php |
visualizzerĂ il seguente elenco:
Array
(
[E_ERROR] => 1
[E_WARNING] => 2
[E_PARSE] => 4
[E_NOTICE] => 8
[E_CORE_ERROR] => 16
[E_CORE_WARNING] => 32
[E_COMPILE_ERROR] => 64
[E_COMPILE_WARNING] => 128
[E_USER_ERROR] => 256
[E_USER_WARNING] => 512
[E_USER_NOTICE] => 1024
[E_ALL] => 2047
[TRUE] => 1
) |
Vedere anche: defined(), get_loaded_extensions(), get_defined_functions() e get_defined_vars().
Hosting by: hurra.com
Generated: 2007-01-26 17:56:41