007
03-13-2003, 08:50 PM
I am trying to make something that replaces certain words:
I tried:
$bbcode=strtolower(str_replace(trim("word"),"replacementword",$bbcode));
The reason the strtolower was in case somebody uses "wOrd" or "WORd" etc. But the problem is now every message is in lowercase.
Is there another way to do this?
I then tried:
if ($bbcode == strt("word")) {
$bbcode = strtolower("replacementword");
}
Something about that brought up the dreaded white error page.
What am I doing wrong? Or is there another way to do this? Thanks.
I tried:
$bbcode=strtolower(str_replace(trim("word"),"replacementword",$bbcode));
The reason the strtolower was in case somebody uses "wOrd" or "WORd" etc. But the problem is now every message is in lowercase.
Is there another way to do this?
I then tried:
if ($bbcode == strt("word")) {
$bbcode = strtolower("replacementword");
}
Something about that brought up the dreaded white error page.
What am I doing wrong? Or is there another way to do this? Thanks.