Sorry! The $ character is still making problems
| From: | Dominik | Date: | Wed, 03 Oct 2001 19:04:31 +0000 |
| Subject: | Sorry! The $ character is still making problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-69816@lists.php.net to get a copy of this message | ||
Ok, let me explain exactly what is happening. On a page, try printing out
this code:
foreach($imgs as $copy) {
echo <option>$copy</option>;
}
$imgs is of course an array. The code though goes through all the $imgs and
displays as so
<option>
image1</option>
<option>
image2</option>
<option>
image3</option>
but I need it like this:
<option>image1</option>
<option>image2</option>
<option>image3</option>
or all in one line would be fine. Any suggestions?
Thanks,
Dominik