note 18606 added to function.print-r
| From: | aceboneNO_SPAM at f2s dot com | Date: | Tue, 29 Jan 2002 10:16:16 +0000 |
| Subject: | note 18606 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25964@lists.php.net to get a copy of this message | ||
The dp function - now with support for objects
function dp($call,$cname) {
// call: the variable you want to print_r
// cname: the label for your debugging output
global $debug;
if ($debug){
echo $cname.":<pre>";
if (!is_array($call) && !is_object($call)) { $call=htmlspecialchars($call); }
print_r($call);
if ( is_array($call) || is_object($call)) { reset($call); }
echo "</pre><hr>";
}
}
--
http://www.php.net/manual/en/function.print-r.php
http://master.php.net/manage/user-notes.php?action=edit+18606
http://master.php.net/manage/user-notes.php?action=delete+18606
http://master.php.net/manage/user-notes.php?action=reject+18606