phpQuery::unloadDocuments();
. Вот пример: $pq = phpQuery::newDocument($html);
$projects =[];
foreach ($pq['.project-preview'] as $work) {
$pqwork = pq($work);
$projects[]['name'] = $pqwork['div']->eq(1)->text();
}
phpQuery::unloadDocuments();