I have a textbox search form and the word " Περισσότερα ".
The word "ρισσότ" contains a Greek character with intonation: " ό ".
After I click on the submit button the program searches for " ρισσότ " and returns results like this:
Περισσότερα σχετικά με την τοποθεσία
When i type the word "ρισσοτ" without intonation, my program finds my word and shows it in the results but doesn't make it bold.
Περισσότερα σχετικά με την τοποθεσία
How can I make my program highlight the match in bold?
My PHP is this
$search_array = explode(' ', $search);
foreach ($search_array as $k => $v)
{
$w = trim($v);
if ($w)
{
$result[$i]['description'] = preg_replace('/(' . preg_quote($w, '/') . ')/siU', '<b>\\1</b>', $result[$i]['description']);
}
}