search

Home  >  Q&A  >  body text

An error occurred. $myNode is not an object and cannot call getElementsByTagName($value)? ? ? ? ?

function getNode (&$myNode,$value)
{

   return $myNode->getElementsByTagName($value)->item(0)->nodeValue;

}

杨abc杨abc2526 days ago1037

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2018-01-02 09:00:47

    You can print and debug it to see what it is

    reply
    0
  • Cancelreply