Over a million developers have joined DZone.

Get All Variables Declared In A PHP Script

·
This will output all declared vars & their assigned values.


$vars = get_defined_vars();
print_r($vars);
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}