get website page data using curl php code example
Example: fetch data from live website curl php
// Initialize Curl
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://coinmarketcap.com/"); // set live website where data from
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); // default
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); // default
$content = curl_exec($curl);
preg_match_all('!<p color="text3" class="sc-AxhUy bzeXdk coin-item-symbol" font-size="1">(.*?)</p>!', $content, $matches);
var_dump($matches);