When i've got a variable with the value x,x (let say 1,3), how can I make sure that no matter what the value of the decimal is it always gets rounded off upwards to 2.
Thanks
use the ceil() function
$rounded = ceil($decimel_number);
ceil() will always round up.
teanks!