How to get the list of defined variables and its values. eg define('DS', DIRECTORY_SEPARATOR);
How can I list all of them at the end of page to check all of them working as expected. Instead of printing all of them one by one.
I've tried get_defined_vars() But I'm getting all Super Global variables like below.
Array
(
[GLOBALS] => Array
(
[GLOBALS] => Array
*RECURSION*
[_POST] => Array
(
)
[_GET] => Array
(
)
[_COOKIE] => Array
(
[PHPSESSID] => tkv7odk47idt4r2ob7389tkr81
[CAKEPHP] => cep9tbooimh5kbhn8jovmaqgi1
)
[_FILES] => Array
(
)
[_SERVER] => Array
But I want only those which I've mentioned using the define() statement.
Is there any way of getting it.
definedefines constants, not variables.