note 115222 deleted from function.print-r by salathe
| From: | salathe@php.net | Date: | Tue, 17 Jun 2014 07:56:10 +0000 |
| Subject: | note 115222 deleted from function.print-r by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199695@lists.php.net to get a copy of this message | ||
Note Submitter: cythrawll
----
print_r is pretty useless, it doesn't do anything well.
It's format is ugly enough you really don't want to use it to output arrays to users in
your UX.
Becuase of the type juggling, it's absolutely horrible for debugging as well. var_export and
var_dump are certainly better choices for that.