$mynumber = "1.03"; $mynumber = settype ($mynumber ,"integer"); echo $mynumber . ""; echo (int) $mynumber; ?>