View Single Post
  #2 (permalink)  
Old 01-04-05, 03:55 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
try replacing line 19 with:
PHP Code:

$pattern preg_replace("~\{\{[A-z0-9_]*\}\}~"$var2use[$index]); 

the braces are used in regexp to specify ranges, so you have to escape them ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote