[pmwiki-users] Irreproducible behavior - maybe a bug
Radu
radu at monicsoft.net
Wed May 11 08:34:52 CDT 2005
So how about eval(), folks?
As in
eval('$bls="bla $var blub";');
At 01:18 AM 5/11/2005, Patrick R. Michaud wrote:
> > On a tangent: if somebody knows a better way to first define a string as
> > 'bla $var blub'
> > and, later, have $var substituted in it, I'd be grateful. That
> > preg_replace thing is rather unwieldy anyway. (I have considered eval(),
> > but it seems to defeat the purpose of precompilation so I'm a bit
> > cautious about it.)
>
>Well, there's not a generic good way to do it, which is why I ended up
>creating FmtPageName to do this sort of thing. But beyond that,
>it's better to use str_replace over preg_replace for straight
>string replacements.
Cheers,
Radu
(www.monicsoft.net)
More information about the pmwiki-users
mailing list