houssam_ballout Posted June 14, 2007 Report Share Posted June 14, 2007 Hello all,How can I print all the variables with values in a php page?Thanks in advance Link to comment Share on other sites More sharing options...
smartalco Posted June 14, 2007 Report Share Posted June 14, 2007 http://www.w3schools.com/php/php_string.asp Link to comment Share on other sites More sharing options...
justsomeguy Posted June 14, 2007 Report Share Posted June 14, 2007 If you want to print out the values of all global variables, you can use this:print_r($GLOBALS);Make sure to look at the page source, the browser ignores whitespace. Link to comment Share on other sites More sharing options...
Lulzim Posted June 14, 2007 Report Share Posted June 14, 2007 Make sure to look at the page source, the browser ignores whitespace.add <pre></pre> and it would look well structuredecho '<pre>';print_r($GLOBALS);echo '</pre>'; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now