You are here: Re: key => value iterations « PHP Language « IT news, forums, messages
Re: key => value iterations

Posted by Daedalus.OS on 05/27/05 16:06

array_walk_recursive() may be what you're looking for:
http://ca.php.net/manual/en/function.array-walk-recursive.php


Dae



"Ike" <rxv@hotmail.com> wrote in message
news:jxEle.681$s64.197@newsread1.news.pas.earthlink.net...
>I am trying to print out values of key=> value pairs as:
>
> foreach ( $result as $key => $value )
> echo(" $key is $value \n");
>
> This works fine unless I get and anwser something like:
>
> Contacts is Array
>
> How then, if one of the $values is an array, could I rewrite this to
> iterate
> down through such an array, echoing the values the same way? TIA, Ike
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация