I have difficulties to get second link href and Text. How to select class=\"secondLink SecondClass\". Using PHP Dom, Thank you
-
you can pick it by selecting your td having class pos and selecting anchor tags. then you cann control your returing array to get your specific anchor tag
讨论(0)
-
$hrefs = $xpath->evaluate("/html/body//a[contains(concat(' ',@class,' '),' secondClass ')
and (contains(concat(' ',@class,' '),' secondLink '))]"
from this answer
讨论(0)
- 热议问题