Re: Arrays -- How do I insert a pair of data into an array
| From: | Christian Reiniger | Date: | Thu, 22 Feb 2001 23:23:23 +0000 |
| Subject: | Re: Arrays -- How do I insert a pair of data into an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41236@lists.php.net to get a copy of this message | ||
On Thursday 22 February 2001 22:58, Scott Walter wrote:
> I am attempting to insert a set of data (actually a pair) into an
> array, without much success. I would like to insert the data set
> ("course number", "course title") into a numerically indexed array so
> that when I want to output the array I can reference it like so:
>
> echo("$array[$i]["course_num"] $array[$i]["course_title"]");
Change this to
echo ("{$array[$i]['course_num']} {$array[$i]['course_title']}");
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
- http://www.google.com/search?q=e