note 116930 deleted from function.print-r by tularis
| From: | tularis@php.net | Date: | Mon, 23 Mar 2015 13:42:00 +0000 |
| Subject: | note 116930 deleted from function.print-r by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202015@lists.php.net to get a copy of this message | ||
Note Submitter: anon
----
A useful thing that I have found to make the variable even more readable (when using an array in
print_r) is this:
<?php
function print_a(array $array)
{
foreach ($array as $p)
{
print_r($p); echo "<br>";
}
}
?>
Makes it that bit more readable. Hope it helps someone out :)