Jump to content

redgenieuk

New Members
  • Posts

    2
  • Joined

  • Last visited

Community Answers

  1. redgenieuk's post in DomDocument; hasChildNodes but Foreach not showing children? was marked as the answer   
    Stupidity has been found. I am answering my own question as I cannot see how to remove it; but hopefully it might help someone else one day!
    Answer is:
    foreach ($txtnode1->parentNode as $child) should be
    foreach ($txtnode1->parentNode->childNodes as $child)  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.