The ceil() function with php allows you to round a number up to the nearest whole number. It has many benefits, but, you must take into consideration that any decimal points will be removed.
$number = ceil(21.5);
echo $number; // output is 22
echo ceil(33.67); // output is 34.
echo "My answer to the math question is ".ceil(100.9); // Output is My answer to the math question is 100.
September 20, 2012 by kent
Owner of Fullstack Web Studio
When Performance and Flexibility Matters
Affordable web design,custom web development and mobile
apps for individuals and businesses.
Let us analyze your data and competition to acquire more traffic! Professional SEO content writer
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton