if ($totalModuletest>0){
if (in_array(1, $modValArr, true)){
echo "1.13 found with strict check\n";
}
}
else{
$aVal = 0;
}
By using print_r($modValArr);
Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 1[5])
I want to know any value exist greater than zero in this array. If it exists I need its key. The result I need is 4.
How is this possible in PHP?
0$modValArris exactly equal to$moduleArr- is there a reason you are copying it like this?