You are here: Re: getting values in an array of arrays « PHP Programming Language « IT news, forums, messages
Re: getting values in an array of arrays

Posted by Jerry Stuckle on 02/07/07 18:12

speralta@progressivetrail.org wrote:
> Hi,
>
> The following is the output of a print_r on an array. The value of
> element[0] is itself an array. How do I access the elements in the
> second array?
>
> Array ( [0] => Array ( [Vancouver] => Vancouver [Eugene] => Eugene
> [Beaverton] => Beaverton ) )
>
> I've tried to set $c[] = $city[0], but this just outputs the same
> result.
>
> Thanks,
>
> Sal
>

$myarray[0]['Vancouver']


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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