I not new to programming but I am new to PHP. I need to write a function that takes in a string, checks it against a known list of key words and if those key words are found, then it adds HTML tags around that word, while leaving the rest of the string intact. I really don't know a lot of PHP but here's the shell I have
function check_me($text)
{
$result=$text;
return $result;
}
How can I check the string $text
for key words and wrap HTML tags around them?