I got the integer value that how much money in that page. But i want to get product name, url and price. How can i got it? How can i fix the problem?
 if (isset($_POST['search'])) {
        $search = $_POST['search'];
        $search = preg_replace("#[^0-9a-z]#", "", $search);
        $url = "https://ryanscomputers.com/catalogsearch/result/?q='.$search";
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        $result = curl_exec($curl);
        preg_match_all('/<span class="price">(.*?)<\/span>/', $result, $matches);
        $info = array_values(array_unique($matches[0]));
        for ($i=0; $i < count($info); $i++){
            echo $info[$i];
        }
        preg_match_all('!<h2 class="product-name"><a href="[^\s]*?"!', $result, $matches);
        $infourl = array_values(array_unique($matches[0]));
        for ($i=0; $i < count ($infourl); $i++) {
            echo $infourl[$i];
        }
        curl_close($curl);
 }
 
     
    