Re: Replacing whole words only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The case is what's stopping it from working
> a str_replace(strtolower($exceptionphrase) , '' , 
> strtolower($stringtoparse)) would take the case out of the equation

No, that didn't entire quite work, either.  The result from this
change is "or ldy lughed" and not the desired result of "lady
laughed".  It's not only replacing *whole* words but parts of
words, too.

thnx,
Chris

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux