<?php
require_once 'simple_html_dom.php';
class temperatura {
public function __construct(){
$this->getTemperatura('https://www.tempoagora.com.br/previsao-do-tempo/pe/Petrolina/');
}
public function getTemperatura($url){
$html = file_get_html($url);
echo'<pre>';
print_r($html);
}
}
$t = new Temperatura();
?>
How to allow PHP to return without this memory problem?