|
Posted by Richard Davey on 02/11/05 02:40
Hello Ben,
Friday, February 11, 2005, 12:36:16 AM, you wrote:
BEl> So the question is is there a function like create_var which
BEl> takes a string and a value and creates a variable?
$var_name = "new_variable";
$$var_name = "hello world";
echo $new_variable;
Search for "variable variables" in the PHP manual for more info.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde
[Back to original message]
|