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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to