Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public function recursive($index = 0, $offset = 200){
  2. $api = getConectApi($index,offset)->getRecords();
  3. foreach($api as $value){
  4. //aqui ocorre meu loop necessário
  5. }
  6. if(count($api) > 0){
  7. $this->recursive($index+200,$offset+200);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement