Re: Creating a varable with a name held in a string

From: Date: Fri, 11 Feb 2005 00:40:57 +0000
Subject: Re: Creating a varable with a name held in a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208499@lists.php.net to get a copy of this message
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

« previous php.general (#208499) next »