houssam_ballout Posted June 14, 2007 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 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 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 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
Archived
This topic is now archived and is closed to further replies.