Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function recursive($index = 0, $offset = 200){
- $api = getConectApi($index,offset)->getRecords();
- foreach($api as $value){
- //aqui ocorre meu loop necessário
- }
- if(count($api) > 0){
- $this->recursive($index+200,$offset+200);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement