$check = array("this", "that", "to be", "not to be");
$yes = $no = array();
I’m trying to check, is each item of array $check contains text “be”.
If it is, then add it to $yes, otherwise add to $no.
Seems I have to use a regular expression, can you please help me to compose it?
If you want to look for the complete word
beand notbeas a substring you can use: