Re: ARRAY Question!
| From: | Ben O'Neill | Date: | Tue, 04 Mar 2003 21:58:15 +0000 |
| Subject: | Re: ARRAY Question! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18842@lists.php.net to get a copy of this message | ||
Well, you can add items onto the end of an array by doing:
$myarray[] = "added on end";
--
Ben "SheepCow" O'Neill
GameSpyDaily Weekend Editor
http://www.gamespydaily.com
"Matt Babineau" <matt@criticalcode.com> wrote in message
news:007201c2e298$bdd90ce0$6610a8c0@webdevx...
> Ok here goes!
>
> Lets say I have an array:
>
> $myArray = array();
>
> Now lets say I am looping over something
>
>
> <LOOP>
>
> How do I simply add a new value to the array??
>
> I just want to start tacking on new key/value pairs to the array.
>
> I must be missing something really basic, but I'm not getting it LOL.
>
> <END LOOP>
>
>
> Thanks,.
>
> <MAtt>
>