Home > php教程 > php手册 > body text

个人站长制做网页常用的php代码

WBOY
Release: 2016-06-13 12:33:39
Original
1233 people have browsed it

复制代码 代码如下:


$str = file("http://tq.tom.com/china/index.html"); 
$count = count($str); 
for ($i=0;$i    $file .= $str[$i]; 

$tomtq = explode("

",$file); 
$tomtq = explode("
",$tomtq[1]); 
$tomtq= $tomtq[0]; 
//$tomtq tom天气小偷 
?> 


天气预报 code来的





[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template