PHP Classes

File: tests.php

Recommend this page to a friend!
  Classes of Elminson De Oleo   PHP Multi Curl Library   tests.php   Download  
File: tests.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Multi Curl Library
Process multiple HTTP requests at the same time
Author: By
Last change:
Date: 3 years ago
Size: 298 bytes
 

Contents

Class file image Download
<?php

namespace Elminson\MultiProccessingCurlRequests;

require
__DIR__ . '/vendor/autoload.php';

$data = [
    [
'url' => 'https://www.google.com']
];
$call = new MultiProccessingCurlRequests();
$call->setIsPost(false);
$r = $call->multiRequest($data);
$result = strip_tags($r[0]);
print_r($result);