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 
> "{$beer}'s taste is great";?>
> 
> <html>
> <head>
> <title>PHP 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 !
> 
> I'm kind of confused right now ...
> 
> (win98, opera 5.12, php installed with installShield)
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to