Home >Backend Development >PHP Tutorial >PHP code PHP code commonly used by personal webmasters to create web pages

PHP code PHP code commonly used by personal webmasters to create web pages

WBOY
WBOYOriginal
2016-07-29 08:36:251116browse

Copy the 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 comes from


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

The above introduces the php code. The php code commonly used by personal webmasters to create web pages, including the content of php code. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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