fork download
  1. <?php
  2. $result = cal_days_in_month(CAL_GREGORIAN, 2, 2015) === 29;
  3. var_dump($result);
  4.  
  5. $result = cal_days_in_month(CAL_GREGORIAN, 2, 2016) === 29;
  6. var_dump($result);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
bool(false)
bool(true)