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 29, 2018 7:58 AM
Views: 15
  1. $scripts = $html->find('script');
  2. foreach($scripts as $s) {
  3.    if(strpos($s->innertext, 'PRODUCT_METADATA') !== false) {
  4.        $script = $s;
  5.    }
  6. }