To get image src with phpquery from html page

1.9k Views Asked by At

How do i get img src with phpQuery from html page? Added: I need to get this 'src' to use in parser module for drupal

1

There are 1 best solutions below

2
On BEST ANSWER

Here is a short example

$imgsrc = pq('div#foo img.pic')->attr('src');