I am having big troubles here. I wrote this code just as it said in the manual, and
it prints
{$beer}'s taste is great;?
html
head
titlePHP Test/title
/head
body
?php
$beer = 'Heineken';
echo h1{$beer}'s taste is great/h1;
?
/body
/html
and if I don't put string into h1 it prints nothing !
All you should need to do is echo H1$beer's taste is great/H1;
don't use the braces.
-Jbell
- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
To: php forum [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 9:38 AM
Subject: [PHP] help again
I am having big troubles here. I wrote
that...
Hope this helps (this sentence should be a tag!)
Regards,
Alex.
- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
To: php forum [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 12:38 PM
Subject: [PHP] help again
I am having big troubles here. I wrote this code just as it said
Sounds like you want to do :
$guiness = 'Thick and Creamy!';
$beer= 'guiness';
print ${$beer}; // Thick and Creamy!
Regards,
Philip Olson
On Fri, 31 Aug 2001, Nikola Veber wrote:
I am having big troubles here. I wrote this code just as it said in the manual, and
it prints
PM
Subject: [PHP] help again
I am having big troubles here. I wrote this code just as it said in the manual,
and
it prints
{$beer}'s taste is great;?
html
head
titlePHP Test/title
/head
body
?php
$beer = 'Heineken';
echo h1{$beer}'s taste is great/h1;
?
/body
/html
and if I
, and the PHP logo etc if
you don't see that, then your installation is broken.
- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
To: Andrey Hristov [EMAIL PROTECTED]; php forum
[EMAIL PROTECTED]
Sent: Friday, August 31, 2001 11:00 AM
Subject: Re: [PHP] help again
The code
6 matches
Mail list logo