anche facendo
$b = strval(abs(intval($a)));
fa lo stesso... a me pare strano.