How to resolve this problem ?
if (strpos($scripts->item($i)->nodeValue, "test") !== false) { //line 127
return true
}
Notice: Trying to get property of non-object on line 127
How to resolve this problem ?
if (strpos($scripts->item($i)->nodeValue, "test") !== false) { //line 127
return true
}
Notice: Trying to get property of non-object on line 127
Check if values exist at all
if(!empty($scripts->item($i)->nodeValue))
{
//your code
}