RosettaCodeData/Task/Web-scraping/PHP/web-scraping-2.php

8 lines
130 B
PHP
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
<?
echo preg_replace(
2018-06-22 20:57:24 +00:00
"/^.*<BR>(.*) UTC.*$/su",
"\\1",
file_get_contents('http://tycho.usno.navy.mil/cgi-bin/timer.pl')
2013-04-11 01:07:29 -07:00
);