Repository: php-curl-class/php-curl-class (language: php)

Issue:
Example to add
Hello,

First, thanks for your work on this library.
I spent sometime trying to figure out how to get responses from multi_curl to use for later processing. Figured it out and thought other couple benefit from this example:

```
use Curl\MultiCurl;

// urls array
$urls = ["https://www.example1.com",
        "https://www.example1.com",
        "https://www.example1.com"];

// array to hold responses
$responses = [];

$multi_curl = new MultiCurl();
$multi_curl->setProxies(PRIVATE_PROXIES["ips"]);
$multi_curl->setProxyAuth(PRIVATE_PROXIES["creds"]);
$multi_curl->setProxyTunnel();
foreach ($urls as $url) {
    $multi_curl->addGet($url);
}
$multi_curl->complete(function ($instance) use (&$responses) {
    $responses[] = $instance->response;
});
$multi_curl->start();

$responses; // this is an array of response from multi_curl to use
```


Discussion / hints:

Fix patch:
diff --git a/examples/multi_curl_get_process_later.php b/examples/multi_curl_get_process_later.php
new file mode 100644
index 0000000000..4ac6dfb76f
--- /dev/null
+++ b/examples/multi_curl_get_process_later.php
@@ -0,0 +1,31 @@
+<?php
+require __DIR__ . '/../vendor/autoload.php';
+
+use Curl\MultiCurl;
+
+// Pages to fetch.
+$urls = [
+    'https://www.example1.com/',
+    'https://www.example2.com/',
+    'https://www.example3.com/',
+];
+
+// Array to hold responses.
+$responses = [];
+
+$multi_curl = new MultiCurl();
+foreach ($urls as $url) {
+    $multi_curl->addGet($url);
+}
+$multi_curl->complete(function ($instance) use (&$responses) {
+    // Store responses.
+    $responses[] = $instance->response;
+
+    // Alternatively, process each response here inside the callback as it is received.
+});
+$multi_curl->start();
+
+// Process responses.
+foreach ($responses as $response) {
+    var_dump($response);
+}


Test patch: