Jump to content

[SOLVED] array?


joecooper

Recommended Posts

$location = array("location" => array(1 => "London", 2 => "Paris", 3 => "Bejing", 4 => "New York", 5 => "Los Angeles", 6 => "Kansas City"));

 

echo $arr["location"][1];    // echos London

echo $arr["location"][2];    // echos Paris

echo $arr["location"][3];    // echos Bejing

echo $arr["location"][4];    // echos New York

echo $arr["location"][5];    // echos Los Angeles

echo $arr["location"][6];    // echos Kansas City

Link to comment
https://forums.phpfreaks.com/topic/104126-solved-array/#findComment-533106
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.