PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
how to diffrentiate date-month-year with current date-month and year, individually,
I wrote a logic on it, I was enough confident it will not work,
the logic is here
Or you can use this solution:
if ( !isset($date) || !preg_match("/^(((([0-9]?)([0-9])(\/|\.|-))){2})(([0-9]){4})$/", $date, $matches) )
{
return false;
}
list ($month, $day, $year) = split('[/.-]', $date);
well omega if its an seo exercise its good... but generally, we suggest better methods if we have to a solved problem otherwise....
its like either you can go straight or you can take a right, then a left, a u-turn from there &.....