Most of the times we don't know what are variables are present in our page because of bulk code or may be of importing multiple files and many reasons, any way we have a function

that can used for displaying all variables present in the PHP page,
That is



get_defined_vars()
This function create a PHP array with all created & used variables up to that in order of

GET
POST
COOKIE
FILES
REQUEST
SERVER
SESSION
php_errormsg
Custom object names
Custom variable names

0 comments:

Post a Comment

 
Top