Image

Image_benbenben_ wrote in Imagephp

August is much better then 8

Is there a way to make cal_days_in_month() return the actual name of the month and not numerical value for the month.
Maybe another function?

If you echo this, you get 8/2004.


import_request_variables('pgc', '');
if (!isset($month)) {
$today = getdate();
$month = $today['mon'];
$year = $today['year'];
}

$numberofdays = cal_days_in_month(CALENDAR_GREGORIAN, $month, $year);