Hi,

I'm having problems stopping preg_replace from losing $ signs and following text when 
replacing with array variables.  I am trying
to use the E modifier and keep getting:

"Warning: Unknown modifier 'E' in script.WEB.php3 on line 413"

$template=array(
  "/({PAGETOP})/E",
  "/({PAGEMIDDLE})/E",
  "/({PAGEBOTTOM})/E"
);

$pagevars=array(
  "PAGETOP" => $pagetop,
  "PAGEMIDLE" => $pagetop,
  "PAGEBOTTOM" => $pagenavbar,
);

Text from assorted sources such as database records or external files are placed into 
the variables $pagetop ...

$page = "{PAGETOP}{PAGEMIDDLE}{PAGEBOTTOM}";
$page = preg_replace($template,$pagevars,$page);

Other modifiers seem to be accepted.  Any help appreciated.

Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to