Re: Create $var with some function
| From: | Robert Stankiewicz | Date: | Thu, 22 Jan 2009 12:49:00 +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-286998@lists.php.net to get a copy of this message | ||
function createvar($var) { ${$var} = 'foo'; global ${$var}; //or global $$var, i don't know it yet. } This should work.