note 90803 added to function.print-r
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 11 May 2009 07:07:36 +0000 |
| Subject: | note 90803 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154433@lists.php.net to get a copy of this message | ||
in response to sebasg37 at gmail dot com:
Instead of capturing the output using buffers, you can simply use the second parameter:
$output = print_r($variable, true);
This will put the output of print_r into the variable for later use.
----
Server IP: 212.124.37.9
Probable Submitter: 217.7.56.35
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- https://master.php.net/note/edit/90803
Del: integrated -- https://master.php.net/note/delete/90803/integrated
Del: useless -- https://master.php.net/note/delete/90803/useless
Del: bad code -- https://master.php.net/note/delete/90803/bad+code
Del: spam -- https://master.php.net/note/delete/90803/spam
Del: non-english -- https://master.php.net/note/delete/90803/non-english
Del: in docs -- https://master.php.net/note/delete/90803/in+docs
Del: other reasons-- https://master.php.net/note/delete/90803
Reject -- https://master.php.net/note/reject/90803
Search -- https://master.php.net/manage/user-notes.php