AW: [PHP] Simple Question
| From: | Sebastian Stadtlich | Date: | Mon, 18 Sep 2000 17:26:57 +0000 |
| Subject: | AW: [PHP] Simple Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17161@lists.php.net to get a copy of this message | ||
> Try this :
>
> for ($i = 1; $i < 4; $i++) {
> $variable = "item" . $i;
> echo "\$item$i = " . $$variable . "<br>\n";
> }
>
or this
for(....
{
echo ${item$i};
}
_______________________________________________
Sebastian Stadtlich
mediaworx berlin AG
Fon (0 30) 2 75 80 - 11 6
Fax (0 30) 2 75 80 - 20 0