I make a request:

$url = file_get_contents('http://mysite.com); $getHtml = phpQuery::newDocument($url); $doc = $results->find('.row > .row.text-center p')->contents(); 

When I withdraw:

 echo $doc; 

I get html in the form:

 <p>значение</p> <p>значение</p> <p>значение</p> 

How do I get the data from the tag?

    1 answer 1

      foreach ($doc as $item) { $result[] = pq($item)->html(); }