I have been trying to get the innertext of html tag from a url (defimedia.info) but i get only 1 output. The code i tried is:
$html = file_get_contents("http://www.defimedia.info");
preg_match("'<h3>(.*?)<h3>'si", $html, $match);
echo($match[1]);
even when i try to use foreach or i try to use $match[2], it does not work. Any help would certainly be appreciated.
regards
bhaamb
`
– Martin Gottweis Nov 23 '16 at 08:03