![]() | 1 handaidai 2012-09-09 15:57:05 +08:00 ![]() Math.floor(1234 % 10) 个 Math.floor(1234 / 10 %10) 十 Math.floor(1234 / 100 %10) 百 Math.floor(1234 / 1000 % 10) 千 以此类推 Math.flloor的目的是去掉小数点后面的 |
![]() | 2 raquelken 2012-09-09 16:10:17 +08:00 ![]() str_split(""+228) |
![]() | 6 chenz 2012-09-10 00:55:18 +08:00 $n=228; $n=(string)$n; echo $n[0]; |