I want to check if my text contains one of words, probably from an array like:
$array = array('BIG','SMALL', 'NORMAL');
Example of what can contains my text variable: $text = "BEAUTIFUL BIG UMBRELLA..."; $text = "SMALL GREEN TEE-SHIRT";
I want to set a variable size; --> if my text contains the word BIG, I want to set the variable size='BIG'....
Thanks a lot.
BIGGIE SMALLS MID-SIZED RED T-SHIRT? Or more generally, what should happen on the occurrence of multiple keywords in a sentence?