$new_times = time( метка 1 ) - time( метка 2 );
$url = "https//:site.com/";
$url_get = file_get_contents($url);
$pQQ = phpQuery::newDocument($url_get );
$title = pq( 'link' );
foreach ($title as $par) {
$link = pq($par);
echo $link->text().'<br>';
}
$pQQ['head'] = phpQuery::newDocument($url_get );
$numbers = round( (render($content['product:commerce_price']['#items'][0]['amount'])/100), 0, PHP_ROUND_HALF_UP);
$precision = 2;
$numbers = $numbers / pow(10, $precision);
$numbers = ceil($numbers) * pow(10, $precision);
echo $numbers;
echo round( (3498484.6/100) , 0, PHP_ROUND_HALF_UP);
//выводит 34985
$numbers = [66241, 15790, 25000];
function round_up($num, $precision) {
$num = $num / pow(10, $precision);
$num = ceil($num);
return $num * pow(10, $precision);
}
foreach ($numbers as $number) {
echo round_up($number, 2) . "\n";
}
(?<=<title>).*(?=</title>)
и сделайте echo у вас точно приходит текст?)