note 26345 added to function.print-r
| From: | ajl at gmx dot de | Date: | Sun, 27 Oct 2002 13:59:59 +0000 |
| Subject: | note 26345 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38620@lists.php.net to get a copy of this message | ||
If you don't want to have the result on screen, but in a variable, use this: <p> function
print_r_to_var($a) {
ob_start();
print_r($a);
$b = ob_get_contents();
ob_end_clean();
return $b;
}
--
http://www.php.net/manual/en/function.print-r.php
http://master.php.net/manage/user-notes.php?action=edit+26345
http://master.php.net/manage/user-notes.php?action=delete+26345
http://master.php.net/manage/user-notes.php?action=reject+26345