Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- total: 100
- data: . . .
- first_page_url: "/?page=1"
- from: 0
- next_page_url: "/?page=2"
- path: "/"
- per_page: 10
- prev_page_url: null
- to: 10
- }
- public function users($page = 1, $verified = null, $admin = null, $joined = null, $active_until = null, $banned_until = null, $referral_code = null) {
- . . .
- }
- $users = [];
- $request = users(); // gets the first page
- while ($request) {
- $request = next_users();
- array_push($users, $request['data']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement