Esempio:
Codice PHP:
<?php
header("Content-type: text/plain");
$contents = file_get_contents('http://www.php.net');
preg_match_all('#<a\\s+href="?([^"]+)"?>#', $contents, $match);
print_r($match);
?>
Esempio:
Codice PHP:
<?php
header("Content-type: text/plain");
$contents = file_get_contents('http://www.php.net');
preg_match_all('#<a\\s+href="?([^"]+)"?>#', $contents, $match);
print_r($match);
?>