You are here: Re: Multi-Dimensional Arrays « PHP Programming Language « IT news, forums, messages
Re: Multi-Dimensional Arrays

Posted by Geoff Berrow on 07/19/05 19:24

I noticed that Message-ID:
<1121780533.445057.291240@g43g2000cwa.googlegroups.com> from chadlupkes
contained the following:

>Does that description help? I've been trying to find a tutorial page
>that explains how to call string values from arrays, but I can't find
>one that I really understand.

Ah yes gotcha. You want the precinct number to be the key to another
array. Try this:

$precinct = array(
2324=> array (
centerlat=>-122.31705665588379,
centerlong=>47.710367959402525,
)
);
print $precinct[2324]['centerlat'];
//prints -122.31705665588379
print"<br>";
print $precinct[2324]['centerlong'];
//prints 47.710367959402525


I have a very basic tutorial here
http://www.ckdog.co.uk/phpcourse/3_arrays_and_loops.doc
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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