filling an array
| From: | Steve Buehler | Date: | Fri, 26 Jul 2002 19:48:37 +0000 |
| Subject: | filling an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109865@lists.php.net to get a copy of this message | ||
Can anyone tell me what I am doing wrong?
I am essentially trying to do this:
$divid[1] = $div_id1;
$divid[2] = $div_id2;
$divid[3] = $div_id3;
$divid[4] = $div_id4;
$divid[5] = $div_id5;
But I was looking for a tighter way, like the following (which does not work):
for($m=1;$m<=5;$m++){
$div_id[$m]=$divid$m;
}
Can anybody tell me how to do this in a "for" statement?
Thanks In Advance
Steve
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3