Re: how to combine the results of two variables to echo another variable?
- From: Sacs <alan_nospam_@xxxxxxxxx>
- Date: Fri, 29 Apr 2005 09:54:19 +1200
Dave wrote:
Hello, I'm a somewhat PHP newbie, so please bear with me.
Here is what I am trying to do:
$foobar = "blah blah"; $a = "foo"; $b = "bar"; $fooboo = "$a" . "$b"; echo $fooboo
I know my syntax here is not correct so I am looking for the function to make $fooboo echo out the $foobar variable "blah blah", and not as "foobar".
Any help is appreciated.
Variable variables: http://nz.php.net/manual/en/language.variables.variable.php
$foobar = "blah blah"; $a = "foo"; $b = "bar"; $fooboo = "$a" . "$b";
$fooboo = $$fooboo;
echo $fooboo
Sacs .
- Follow-Ups:
- Re: how to combine the results of two variables to echo another variable?
- From: Ewoud Dronkert
- Re: how to combine the results of two variables to echo another variable?
- References:
- Prev by Date: Re: content manager without MySql
- Next by Date: Re: how to combine the results of two variables to echo another variable?
- Previous by thread: how to combine the results of two variables to echo another variable?
- Next by thread: Re: how to combine the results of two variables to echo another variable?
- Index(es):
Relevant Pages
|