note 48893 deleted from ref.array by tularis
| From: | tularis@php.net | Date: | Tue, 11 Jan 2005 12:11:31 +0000 |
| Subject: | note 48893 deleted from ref.array by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83074@lists.php.net to get a copy of this message | ||
Note Submitter: rafa dot chacon at factorydea dot com
----
I use to print arrays using the following function:
<?php
function __pre($my_list)
{
echo "<pre>";
print_r($my_list);
echo "</pre>";
}
?>
This is a simple way to show array contents in arrays, associative arrays, multidimensional
arrays...
__pre function should be used only for debugging purposes.
Note that two underscore in __pre brings an easy way to find a call in a large amount of code when
searching.