On 07/14/2009 04:29 PM, Paulos23 wrote:
>
> How i can take these data from the array[] and print them like this
> for example?
> name:Barcelona
> lat:...
> lng...
>
Given $i is the name of your array.
foreach($i['Geoname'] as $parent){
foreach($parent as $key => $child){
echo $key, ': ', $child;
}
}
PS: Look into arrays; lots of resources available.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---