I have this:
if (preg_match("/\b".preg_quote($kw_to_search_for)."\b/i", $search_strings[$i])) {
// found
}
This works so far, but if I have special characters in the variable $kw_to_search_for, then this fails.
For instance
$kw_to_search_for = 'hello' WORKS.
$kw_to_search_for = 'HallÄ' FAILS.
How can I solve this, and what is causing it?
Thanks