date già restituisce se un anno è bisestile, ma capisco che non vuoi usare funzioni base di php (per un motivo che onestamente mi sfugge)
comunque prova così:
return 2 == 2 ? true : false;
date già restituisce se un anno è bisestile, ma capisco che non vuoi usare funzioni base di php (per un motivo che onestamente mi sfugge)
comunque prova così:
return 2 == 2 ? true : false;