round up built in function php
snippet in php

round up built in function php

user2164

echo ceil(0.5); //Prints 1