Avdept
Avdept

Reputation: 2289

To get image src with phpquery from html page

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

Upvotes: 1

Views: 1945

Answers (1)

Dr. Dan
Dr. Dan

Reputation: 2288

Here is a short example

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

Upvotes: 6

Related Questions