I've got a
foreach ($acct as $val){
$acc_s = explode(',',$val["access_type"]);
}
The value of ACC will Array from every foreach
var_dump($acc_s);
Output:
array(1) { [0]=> string(1) "1" }
array(2) { [0]=> string(1) "1" [1]=> string(1) "2" }
array(2) { [0]=> string(1) "3" [1]=> string(1) "4" }
array(1) { [0]=> string(1) "3" }
My question is, how do I make a condition if the value of the "explode" element have 1 or 2 or 3 or 4.
I'd try.
for($i=0;$i<count($acc_s);$i++){
$out_acc = $acc_s[$i];
}
But it won't give me the right output to what I need.