> Richard,
>       The problem is with the str_replace()s. Consider the following:
> 
> <?php
> $myvar = 'this is a var.';
> $mytext = str_replace('is', 'is not', $myvar);
> ?>
> 
> At this point $myvar still equals 'this is a var.' but $mytext is 'this is
> not a var.' $myvar hasn't been modfified by the str_replace so any
> additional str_replace()s after it will not have a cumlative effect.

Actually, wouldn't the string then be equal to 'this not is not a var.' ??


- Brian


-- 
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