Consider the following:
<?php
$array = array(1,2,3,5,7,11);
for($i=1;$i<=12;$i++){
if(in_array($i,$array)){echo $i.' yes<br>';} else {echo $i.' no<br>';}
}
?>
Outputs
1 yes
2 yes
3 yes
4 no
5 yes
6 no
7 yes
8 no
9 no
10 no
11 yes
12 no
1
solved How to i fetch all the date in to the select data table [closed]