¡@

Home 

php Programming Glossary: documentlinks

Finding links matching given string in xpath/domdocument query

http://stackoverflow.com/questions/5251282/finding-links-matching-given-string-in-xpath-domdocument-query

Everything seems to work up to where for i 0 i documentLinks length i is used. Can anyone help with where I am going wrong.. query ' ol li starts with @id stuff ' foreach result as e documentLinks e getElementsByTagName 'a' item 0 nodeValue for i 0 i documentLinks.. e getElementsByTagName 'a' item 0 nodeValue for i 0 i documentLinks length i documentLink documentLinks item i if preg_match domain..