loading Arrays
| From: | sundogcurt | Date: | Thu, 28 Feb 2002 22:50:41 +0000 |
| Subject: | loading Arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86671@lists.php.net to get a copy of this message | ||
Do I have to fully load up an array when I declare it or can I assign more values to it later?
What I want to do is something like this :
// create empty array
$samplearray = array();
// add value to array
if($flag == "true"){
$samplearray => $samplevalue;
}
This doesn't work, can anybody tell me if I'm on the right track here or should I scrap it and start over?
Thanks
Curt