to all guru
is there a function that can detect immediate number day of the month??
example : When I entered november it should automatically detect the number of day of November
like 30?
You could make you own function to do that:
function days_in_month($mon) { $mon_days = array('Jan' => '31', 'Feb' => '28, sometimes 29', 'Mar' => '31'); // etc. return $mon_days[$mon]; } echo days_in_month('Mar'); // echos "31"
Look up the flags available to [MAN]date[/MAN]. The one you want is 't' IIRC.