Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Expanding php variables in a text
- Victor Espina
September 17, 2005, 4:30 pm
rate this thread
I know that if I do this:
$result="$var1 <> $var2";
I will get:
"A <> B"
Now, I want the same result but with a string that I'm getting from a DB
$result=GetMyString(); -> GetMyString() returns "$var1 <> $var2";
echo $resul; -> It should show "A <> B";
How can I do this?