i have value in php variable like that
$var=\'2.500000550\'; echo $var
what i want is to delete all decimal points after 2 digits.
If you don't want to round the number but you want to remove the decimal places you can use "substr" method
substr(string, start, length); substr(4.96, 0, -1);