note 74768 added to function.print-r
| From: | mrasnika at users dot sourceforge dot net | Date: | Thu, 26 Apr 2007 18:30:39 +0000 |
| Subject: | note 74768 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125897@lists.php.net to get a copy of this message | ||
We can all agree that print_r() output is very spartan looking. The debug data needs to be organized
better, and presented in a graceful way. In the era of Web 2.0 it is somewhat strange to use plain
text to dump information. A DHTML powered informatiion dumping tool will be quite better - like the
the open-source alternative of print_r(); -- Krumo (http://krumo.sourceforge.net).
It renders the output using DHTML and collapsible nodes, it's layout is "skinable"
and you can change it to fit your aesthetic taste. Krumo makes the output "human-readable"
for real :) Plus it is compliant with both PHP4 and PHP5. Plus it detects "reference
recursion". Plus you can use it to dump all various sort of data like debug back-traces, the
superglobals ($_SERVER, $_ENV, $_REQUEST, $_COOKIE, $_GET, $_POST, $_SESSION), all the included
files, all the declared classes, all the declared constants, all your PHP settings, all your php.ini
values (if it is readable), all the loaded extensions, all the HTTP request headers, all the
declared interfaces (for PHP5), all the file paths from INCLUDE_PATH, all the values of any
particular INI file. Additionally it is designed to be easy to use - for example you can disable all
the Krumo dumps instead of cleaning your code out of all print_r()'s and var_dump()'s.
Anyway, if you check the site (http://krumo.sourceforge.net), you can found a lot of examples,
demonstrations, documentation and all sort of helpful information.
----
Server IP: 217.75.128.29
Probable Submitter: 87.126.122.87
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- https://master.php.net/note/edit/74768
Del: integrated -- https://master.php.net/note/delete/74768/integrated
Del: useless -- https://master.php.net/note/delete/74768/useless
Del: bad code -- https://master.php.net/note/delete/74768/bad+code
Del: spam -- https://master.php.net/note/delete/74768/spam
Del: non-english -- https://master.php.net/note/delete/74768/non-english
Del: in docs -- https://master.php.net/note/delete/74768/in+docs
Del: other reasons-- https://master.php.net/note/delete/74768
Reject -- https://master.php.net/note/reject/74768
Search -- https://master.php.net/manage/user-notes.php