What does this code snippet value represent?

I have this code snippet:

                    $today = date('Ymd');
                    $dateCompare = date('Y') . '0507';
                    if ($today < $dateCompare) {

And I want to know what does the 0507 represent? Is it a date format or something? It looks like it is comparing the Year to 0507...but I don't understand it.

Any help would be appreciated.
Donnie WalkerAsked:
Who is Participating?
 
jfromanskiCommented:
$today is Ymd, eg. 20110215
$dateCompare is concatenation of two strings: Y and '0507' - this will give eg. 20110507
0
 
Donnie WalkerAuthor Commented:
Thank you sir!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.