note 100473 deleted from function.print-r by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 Oct 2010 15:30:50 +0000 |
| Subject: | note 100473 deleted from function.print-r by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173250@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
So if somebody want to work with multidimensnal arrays,
here i have written a function:
function print_array(array $array){
foreach($array AS $key => $value){
echo $value ."[".$key."]"."<br>";
if(is_array($array[$key])){
echo "<br>Anzahl:". count($array[$key]). "<br>";
print_array($array[$key]);
}
}
}
That's it!