Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 8:24 AM
Modified: Apr 11, 2018 6:04 PM
Views: 17
  1. $selector = 'div[class="active prs last-child"]';
  2. $ret = $html->find($selector);
  3. if ($ret == FALSE){
  4.     echo "Could not find " . $selector;
  5. }
  6. else {
  7.     foreach($ret as $element) {
  8.         echo $element->plaintext;
  9.     }
  10. }