note 98818 deleted from function.print-r by danbrown

From: Date: Fri, 09 Jul 2010 13:44:35 +0000
Subject: note 98818 deleted from function.print-r by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170822@lists.php.net to get a copy of this message
Note Submitter: rjmunro at arjam dot net ---- The output of this function is not encoded in HTML, and will look like a mess in a web browser. You have to capture the output in an output buffer, then encode as HTML, then print. I use the following: <pre> <?php ob_start(); print_r(get_defined_vars()); echo htmlentities(ob_get_clean()); ?> </pre>

« previous php.notes (#170822) next »