PHP Variable Names
Copy this code and paste it in your HTML
Since the curly braces literally mean "evaluate my contents as a string"
use
print_r() or var_dump()
the superglobal $GLOBALS
use
get_defined_vars()
to find out the variable names that have been created.
URL: http://cowburn.info/2008/01/12/php-vars-curly-braces/
Report this snippet
Comments
Subscribe to comments