+ 2

How to print first, second and third Saturday in a calender in php language...Plz suggest me

I want to show odd Saturday by red color in a calender

15th Dec 2017, 3:10 AM
Mohd Akram
Mohd Akram - avatar
3 Respostas
+ 2
$sat = date("F Y",strtotime("2015-08-01")); echo $fir_sat = "$sat first saturday"; echo " is ".date('d', strtotime($fir_sat)); $sat = date("F Y",strtotime("2015-07-04")); echo $fir_sat = "$sat first saturday"; echo " is ".date('d', strtotime($fir_sat));
15th Dec 2017, 5:02 AM
Akram Developer
Akram Developer - avatar
+ 2
and output.. August 2015 first Saturday is 08 July 2015 first Saturday is 04
15th Dec 2017, 5:03 AM
Akram Developer
Akram Developer - avatar