Re: [PHP] Recursive Interpolation

2004-10-05 Thread Chuck Wolber
Ah yes, thanks. Looks like it's mentioned here: http://marc.theaimsgroup.com/?l=php-dev&m=109405450709578&w=2 Doesn't look like it's going to happen too soon though based on Sara's comment: "and I havn't personally had the motivation to actually get it done." Looks like there's some traction

RE: [PHP] Recursive Interpolation

2004-10-05 Thread Michael Sims
Chuck Wolber wrote: > On Mon, 4 Oct 2004, Michael Sims wrote: >> What's ugly about it? I saw your earlier post I was actually >> planning on responding and suggesting something exactly like you >> just came up with. > > The main problem (aside from performance, which you addressed) is > that it do

Re: [PHP] Recursive Interpolation

2004-10-05 Thread l0t3k
if you check the internals archive, i think Sara said she had an interpolator on her plate... "Chuck Wolber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 4 Oct 2004, Michael Sims wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] Recursive Interpolation

2004-10-05 Thread Chuck Wolber
On Mon, 4 Oct 2004, Michael Sims wrote: > Chuck Wolber wrote: > > The method I've come up with in the meantime, I believe is much more > > effective than heredocs, but still an ugly hack: > > > > function interpolate ($text, $msg_variable) { > > $msg_key = '_FP_VAR_'; > > > > foreach (arra

RE: [PHP] Recursive Interpolation

2004-10-04 Thread Michael Sims
Chuck Wolber wrote: > The method I've come up with in the meantime, I believe is much more > effective than heredocs, but still an ugly hack: > > function interpolate ($text, $msg_variable) { > $msg_key = '_FP_VAR_'; > > foreach (array_keys($msg_variable) as $key) { > $token = $msg_

Re: [PHP] Recursive Interpolation

2004-10-04 Thread Chuck Wolber
On Mon, 4 Oct 2004, Chuck Wolber wrote: > Database *FIELD* with text data in it. The text data contains sentences > interspersed with $foo['bar'] array variables. The idea is that when one > selects this field, PHP will interpolate $foo['bar'] with the currently > defined $foo array variable. T