- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Fatal error: Cannot access self:: when no class scope is active in /in/L6Xku on line 7
Process exited with code 255.
<?php
print_r(getMonth(null));
function getMonth($d)
{
return self::dtf($d,'n');
}
function getQuarter($d)
{
return ceil( self::getMonth($d) / 3);
}
function dtf($date, $format = 'd.m.Y'){
$date = new DateTime($date);
return $date->format($format);
}