I have a very simple class for date display:
class timing {
public $today;
public $year;
function __construct() {
date_default_timezone_set('GMT');
}
function now() {
return $this->today = date("D j M Y");
}
function year() {
return $this->year = date("Y");
}
}
I am pulling in using:
$x = new timing();
echo $x->today();
But i get nothing back. What am i missing :'(