Re: Array
| From: | Jason Wong | Date: | Mon, 16 Dec 2002 17:53:16 +0000 |
| Subject: | Re: Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128440@lists.php.net to get a copy of this message | ||
On Tuesday 17 December 2002 01:43, Mako Shark wrote:
> I have an array I set up like this:
>
> $monthschedule = array(1 => "Jan", 2 => "Feb", 3 =>
> "Mar", 6 => "Jun");
>
> When I try to access them, doing this:
> $r = $monthschedule[6];
>
> nothing comes up ($r is blank). Any thoughts? There
> are missing elements (4,5,7-12) in $monthschedule.
Use print_r($monthschedule) to see what's really inside the array.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
I bought some used paint. It was in the shape of a house.
-- Steven Wright
*/