note 100473 added to function.print-r
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 18 Oct 2010 15:18:41 +0000 |
| Subject: | note 100473 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173249@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 69.147.83.197
Probable Submitter: 91.54.10.38
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- https://master.php.net/note/edit/100473
Del: integrated -- https://master.php.net/note/delete/100473/integrated
Del: useless -- https://master.php.net/note/delete/100473/useless
Del: bad code -- https://master.php.net/note/delete/100473/bad+code
Del: spam -- https://master.php.net/note/delete/100473/spam
Del: non-english -- https://master.php.net/note/delete/100473/non-english
Del: in docs -- https://master.php.net/note/delete/100473/in+docs
Del: other reasons-- https://master.php.net/note/delete/100473
Reject -- https://master.php.net/note/reject/100473
Search -- https://master.php.net/manage/user-notes.php