[Solved] PHP : Check and Read from array [duplicate]
In your question $arr is the array. First we’ll check if ‘Action’ is in the array. if(in_array(‘Action’,$arr)){ //in_array checks if ‘Action’ is in the array echo “Action is in the array!”; } Now we need to “implode” the array to turn it into a string. echo “(” . implode(‘,’, $arr) . “)”; //implode glues the … Read more