Jump to content

Quick Noob Question....


iPixel

Recommended Posts

In my opinion you should always use ceil. This is mainly because you just want to know if there's gonna be another page or not, even if that page just has one result. if the value was 2,1 and you used round(), the result would be 2 pages, but in fact you need 3 to display all the results.

 

Hope this made sense.

 

 

Link to comment
https://forums.phpfreaks.com/topic/238202-quick-noob-question/#findComment-1224064
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.