PHP code example of yehchge / ycurl
1. Go to this page and download the library: Download yehchge/ycurl library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yehchge / ycurl example snippets
php
declare(strict_types=1);
e get
$CCurl = new CCurl();
$output = $CCurl->fetch('GET', 'https://example.com/');
if(preg_match("/Example Domain/", $output)){
echo "A match was found.";
}else{
echo "A match was not found.";
}