Can you advice some tools(php7/laravel5) for debugging/review of data read with phpQuery?
I mean when I need to get data-attribute of H2 tag I write:
Code: Select all
$pq = pq($nextContainerDivItem); $nextTitle= $pq->find('h2.s-access-title'); echo '<pre>$nextTitle::</pre>'; dump($nextTitle); $next_title= !empty($nextTitle->attr('data-attribute') ) ? $nextTitle->attr('data-attribute') : '';
is not really usefull, as I could not review the value in dumping: I suppose to find it in path elements->attributes,
but as you see at printscreen.
If there isa better of dump( ? If possible with options to show some nodes. Say not empty or specifile in path, as if ["elements->attributes"]
specified show it opened.