sareef sareef - 1 year ago 69
PHP Question

round number in php

i want to round number like as shown below in php

1.1= 2
1.2= 2
.
.
.
.
1.8= 2
1.9 =2

Answer Source
//this will round the fraction up
echo ceil(4.3);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download