Problem with quotes
| From: | Mário Gamito | Date: | Fri, 22 Feb 2008 04:04:15 +0000 |
| Subject: | Problem with quotes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-269827@lists.php.net to get a copy of this message | ||
Hi,
Sorry for such a laim question.
I have this code:
$host = 'http://' . $_SERVER['HTTP_HOST'];
"foreach($browser as $key => $val){
echo "<img src=\"dcs/" . $key . '.png"' . " />" . " ";
(...) "
but it has a bug, I need to add the server domain before the picture, so I did:
$host = 'http://' . $_SERVER['HTTP_HOST'];
"foreach($browser as $key => $val){
echo $host . "<img src=\"dcs/" . $key . '.png"' . " />" . " ";
(...)"
But this way, all it echoes is the $host variable.
What am I missing here ?
Any help would be appreciated.
Warm Regards,
Mário Gamito