Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

multiple value match in array php

if (in_array('a', $array_under_test) || in_array('b', $array_under_test)) {
  // Success!
}
Source by codereview.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #multiple #match #array #php
ADD COMMENT
Topic
Name
5+9 =