PHP Classes

Why a class?

Recommend this page to a friend!

      Leap year checker  >  All threads  >  Why a class?  >  (Un) Subscribe thread alerts  
Subject:Why a class?
Summary:Why not checkdate()?
Messages:1
Author:Gerry Danen
Date:2006-11-29 13:44:44
 

  1. Why a class?   Reply   Report abuse  
Picture of Gerry Danen Gerry Danen - 2006-11-29 13:44:44
Isn't it easier to use the checkdate() function?

checkdate(2, 29, 2006) seems much simpler and probably than adding a new class.

I am curious about the reason for a new class.