Forum Moderators: coopster
Is there a way to replace a string with another without case sensivity?
I am using str_replace, and cannot use str_ireplace because I do not have PHP 5 CVS.
Any suggestions are welcome.
Thanks in advance.
I woiuld try something like this:
$query = strtolower($query);
$result_from_table = strtolower($result_from_table);
$pos = strpos($result_from_table, $query);
if($pos) {
echo "Found $query! at $pos<br>";
}
else {
echo "not found!<br>";
}
hope this helps!
eelix