[PHP] Re: [PEAR-DEV] Template class

2001-12-11 Thread Peter Bowyer
I think I've seen something like this before... hang on, isn't it called PHP??? Could you explain what advantages you see in doing it this way, as I can't see any :-( Peter. At 11:00 PM 12/10/01 +0100, Wolfram Kriesing wrote: >(just in case any of the people on PEAR-DEV will read this at all,

[PHP] variable scope / preg_replace_callback question

2001-12-03 Thread Peter Bowyer
Hi, Does anyone know of a way of passing other variables to the function being called by preg_replace_callback? For instance, I have the following code: function smarty_compile_lang($tpl_source) { // en.php contains a very large array, $_lang include_once '/home/test/en.php'; g