I need to highlight each word separately from a string, even if the string is only one word.
$keyword = 'should be bolded';
$string = 'This shouldbebolded';
Expected result:
"This shouldbebolded." This is the Google like highlight.
See Question&Answers more detail:os