Home > Backend Development > PHP Tutorial > PHP codes commonly used by personal webmasters to create web pages_PHP tutorial

PHP codes commonly used by personal webmasters to create web pages_PHP tutorial

WBOY
Release: 2016-07-21 15:57:13
Original
1029 people have browsed it

Copy code The code is as follows:

$str = file("http://tq.tom. com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $ str[$i];
}
$tomtq = explode(" ",$file);
$tomtq = explode("
",$tomtq[1]);
$tomtq= $tomtq[0];
//$tomtq tom weather Thief
?>


Weather forecast code came





[Ctrl+A to select all Note: If you need to introduce external Js, you need to refresh to execute]

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317868.htmlTechArticleCopy the code as follows: ?php $str=file("http://tq.tom.com/china /index.html"); $count=count($str); for($i=0;$i$count;$i++){ $file.=$str[$i]; } $tomtq=explode(" tablewidth="774"b...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template