php – How to search for keywords in a Json

Do I have a JSON returning the following fields?

{
"title": "First contact", "
"text": Hello I would like to make a suggestion for you & # 39;
}

I'm trying to make the next check

foreach ($ dates $ msg) {
$ title = $ msg-> Message;
$ text = $ msg-> text;
$ term = & # 39; contact & # 39 ;;

if (strpos ($ title, $ term) === false) {
echo & # 39; not found & # 39 ;;
}} else {
echo & # 39; Found
}
}

In this way it returns only the words of the title and only searches for one word at a time. I want to look for more than one word both in the title and in the msg text