Re: PHP Template Global Variables
[email protected] (David Wheeler) Wed, 26 Oct 2005 20:11:48 -0700
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
On Oct 26, 2005, at 7:43 PM, George Schlossnagle wrote:
> The quick hack to make this work is to do:
>
> $php->eval(qq/function setBric(\$key, \$var) {
> global \$$key;
> \$$key = \$var;
> }/);
>
> $php->setBric(element, $elem);
Quick for me to do now, and so I will, but not so performant, I
suspect. Am I right?
Best,
David