note 92730 added to debugger
| From: | turaz dot w4l at gmail dot com | Date: | Thu, 06 Aug 2009 11:14:31 +0000 |
| Subject: | note 92730 added to debugger | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159144@lists.php.net to get a copy of this message | ||
I usually use this simple function in combo with a die(); in order to have on screen the value of a
variable or array:
<?php
function debug_view ( $what ) {
echo '<pre>';
if ( is_array( $what ) ) {
print_r ( $what );
} else {
var_dump ( $what );
}
echo '</pre>';
}
?>
----
Server IP: 80.241.173.5
Probable Submitter: 212.121.66.30
----
Manual Page -- http://www.php.net/manual/en/debugger.php
Edit -- https://master.php.net/note/edit/92730
Del: integrated -- https://master.php.net/note/delete/92730/integrated
Del: useless -- https://master.php.net/note/delete/92730/useless
Del: bad code -- https://master.php.net/note/delete/92730/bad+code
Del: spam -- https://master.php.net/note/delete/92730/spam
Del: non-english -- https://master.php.net/note/delete/92730/non-english
Del: in docs -- https://master.php.net/note/delete/92730/in+docs
Del: other reasons-- https://master.php.net/note/delete/92730
Reject -- https://master.php.net/note/reject/92730
Search -- https://master.php.net/manage/user-notes.php