remove number after decimal in php

39

$var = 252.587254564;
$var = (int)$var; // 252
(int)-1.2

Comments

Submit
0 Comments