Re: Create $var with some function
| From: | Richard Heyes | Date: | Thu, 22 Jan 2009 12:56:24 +0000 |
| Subject: | Re: Create $var with some function | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287001@lists.php.net to get a copy of this message | ||
Hi,
function createvar($name, $value)
{
$GLOBALS[$name] = $value;
}
Or do it without a function:
$GLOBALS['name'] = $value;
--
Richard Heyes
HTML5 Graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 17th)