I need to find the index of the array where this occurs (without doing a massive if statement)
Code: Select all
$levels = array($results["APP_S1_ID"][0],
$results["APP_S2_ID"][0],
$results["APP_S3_ID"][0],
$results["APP_S4_ID"][0],
$results["APP_S5_ID"][0]);
$l = array_search($levels, !=0);
echo $l;