I use date and strings :
$fullYear = date("Y"); $century = substr($fullYear, 0, 2);
use intval if you need to calculate something