DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Get All Variables Declared In A PHP Script

02.17.2006
| 32098 views |
  • submit to reddit
        This will output all declared vars & their assigned values.

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