How to add pagination to the values coming from an API
-
I am using a php API to get some details and I want to put a pagination on it I have no idea yet about that, below is the details given to us by the API
array (size=3)
0 =>
object(stdClass)[2]
...
1 =>
object(stdClass)[5]
...
2 =>
object(stdClass)[8]
...
public 'cursor' => int 4
public 'hasMore' => boolean true -
can you provide API response as a JSON format, also need to check the url
-
any example