I’m looking to make a statement in PHP like this:
if(preg_match("/apples/", $ref1, $matches)) OR if(preg_match("/oranges/", $ref1, $matches)) {
Then do something }
Each of those above by themselves work just fine, but I can’t figure out how to make it so that if either of them is true, then to perform the function I have beneath it.
Simple, use the logical OR operator:
For example, in your case: