Told you about a nice php function

Called

ceil

In fact, his function is very simple

int ceil(float number);

float number=Floating-point functions

Example 1

echo ceil(3.5);

Displays
4

Example 2

echo ceil(3.0);

Displays
3

Is the value if there is a decimal

Then +1

This function is used in very good with Oh jump page

Such as


$Total pages should be displayed=(ceil($Total/$Items per page));

How, oh good

Mmm

Think it is helpful to leave a word of it