Question : remove decimal php
Answered by : portapipe
$var = 252.587254564;
$var = (int)$var; // 252
Source : https://stackoverflow.com/questions/4903171/removing-all-decimals-in-php | Last Update : Fri, 11 Sep 20
Question : remove number after decimal in php
Answered by : ankur-prajapati
(int)-1.2
Source : https://stackoverflow.com/questions/2841109/how-to-delete-all-numbers-after-point-in-php | Last Update : Fri, 13 Nov 20