printing variables within a variable
Posted: Tue Jun 07, 2005 11:55 am
is there a way to print the variables within a variable?
$vars will be used as a customizable combination of string and variables so that print would show them as though the contents of $vars was sent,
JCART | Please use
Code: Select all
$a="a"
$b="b"
$c="c"
$vars = "text".$a."text".$b."text".$c
print $vars
// so that it outputs: "textatextbtextc"
// just as though I sent it
print "text".$a."text".$b."text".$c;JCART | Please use
Code: Select all
tags when posting php code. Review [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color][/size]