Pagination plays a very important role in performance and user experience. As you are hitting to database and fetching more rows uses more memory which can slow database. On the other hand browsers can crash with a lot-of records. specially when you are making web services for mobile devices. So it is good practice to use pagination in php to avoid such overhauls of browser and database or any mobile device etc.
solved Is php pagination compulsory?