PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

in PHP i need to check if dateA fits within dateB & dateC. can't find a tutorial?

Asked 2010-03-03 18:53:06 by rawfmradio

can this be done with if else??

Anwered 2010-03-03 20:14:22 by Robin T

Yup.

if ( strtotime($dateA) >= strtotime($dateB) && strtotime($dateA) <= strtotime($dateC) )
{
...
}

Questions and answers provided by the Yahoo Answers Community.