I am trying to find an element in the HTML document using php.
include_once ('simple_html_dom.php'); $ Handle = fopen ("exercise / exercise.", "R"); $ File = fread ($ handle, 8192); $ Handle = file_get_html ('exercise / Exercise.php'); If (! Handle ($ handle)) {$ ret = $ handle-> Search ('div [id = abc]'); }
But now I do not know what to do with $ ret
now? Or even in the investigation it is & lt; Div id = "abc" & gt;
found or not? Do not I know this correctly because I am not very good at php?
Editing that question is a way of understanding me.
should be
$ handle-> Search ('div [id = abc]', 0);
No comments:
Post a Comment