* class PHP5_HTTP_Client extends HTTP_Client implements Iterator {} * * $client = new PHP5_HTTP_Client(); * * // ... perform requests ... * * foreach ($client as $url => $response) { * // do something * } *
* for ($client->rewind(); $client->valid(); $client->next()) { * $url = $client->key(); * $response = $client->current(); * // do something * } *