Skip to content
Advertisement

How to search for certain words in array in a sentence using PHP

I am trying to search for certain word in a sentence. To that effect, I leverage solutions found (source), which works fine for searching just a word.

My issue is that I need to search the words in the array in a sentence something like

JavaScript

How can I do that?

Here is the code:

JavaScript

Advertisement

Answer

try something like this one

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement