|
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/
[Back to original message]
|