We all know about pagination and where we use :-p but if you are developing web api or web services in php here is a simple and easy way to create pagination.

hope this help you 🙂