Hi
How do I change a variable within another?
I have an array:
$myarray array(
"one" => '"The first number is " . $number',
"two" => '"The second number is " . $number',
....);
$number = "1";
echo $myarray["one"];
How can I get this to output:
"The first number is 1" ?
I want to either just do it this way above or using the phplib templates (see below for what I'm trying to do)
I'm using the template.inc from phplib and I want to basically do the same thing as calling a template and set_var any variables, but I want to create the template on the fly and if I set the template with set_var instead of set_file, the {variables} are no longer accessible.
Thanks
Jadow