RE: [PHP] string replace using ereg

2001-07-16 Thread scott [gts]
$text = Hello there, test. My name is name; $ASSIGN = array(test = this is a test, 'name'= 'BOB', ); $OPENTAG = ; $CLOSETAG = ; print preg_replace( /$OPENTAG(.*?)$CLOSETAG/e, '$ASSIGN[$1]', $text ); prints: Hello there, this is a test. My name is BOB To do what you want, throw a loop

RE: [PHP] string replace using ereg

2001-07-16 Thread scott [gts]
preg_replace( /$OPENTAG(.*?)$CLOSETAG/e, '$ASSIGN[$1]', $text ); -Original Message- From: Jeroen Olthof [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] string replace using ereg Mmmm, thx , but I can't get it to work when I run