Re: PHP Template Global Variables
[email protected] (David Wheeler) Wed, 26 Oct 2005 21:18:10 -0700
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
On Oct 26, 2005, at 7:43 PM, George Schlossnagle wrote:
> $php->eval(qq/function setBric(\$key, \$var) {
> global \$$key;
> \$$key = \$var;
> }/);
This worked:
$php->eval(q/function setGlobal($key, $var) {
global $$key;
$$key = $var;
}/);
Woot! Thanks, George!
David