PHP function Demo

This is demonstration of a PHP funciton which returns true or false if provided DAY is nth ..._day of current month

Is it

of this month?

Examples

$is_it_first_saturday = is_it(1,'saturday');
/*this will return false*/


$is_it_second_saturday = is_it(2,'saturday');
/*this will return true for 8-Jan-2022*/