[PHP] how do i continue with ereg replace?

2002-08-14 Thread victor

I want to have the ereg_replace action happen many times before the
result is echoed, how do I do this? The following is the code that I
have that obviously is flawed because the later variable as afar as ai
know cancels out the first one...

$good = ereg_replace(o:p/o:p,   , $str);
$good = ereg_replace(/head,   , $str);

//echo ereg_replace(/o:p,   , $str);
echo $good;

help appreciated.

- Vic



__ 
Post your ad for free now! http://personals.yahoo.ca

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how do i continue with ereg replace?

2002-08-14 Thread Rasmus Lerdorf

So pass $good into the second call instead of $str

On Wed, 14 Aug 2002 [EMAIL PROTECTED] wrote:

 I want to have the ereg_replace action happen many times before the
 result is echoed, how do I do this? The following is the code that I
 have that obviously is flawed because the later variable as afar as ai
 know cancels out the first one...

 $good = ereg_replace(o:p/o:p,   , $str);
 $good = ereg_replace(/head,   , $str);

 //echo ereg_replace(/o:p,   , $str);
 echo $good;

 help appreciated.

 - Vic



 __
 Post your ad for free now! http://personals.yahoo.ca

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php