个人站长制做网页常用的php代码
时间:2021-04-16 08:24:51|栏目:PHP代码|点击: 次
复制代码 代码如下:
<?php
$str = file("http://tq.tom.com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
$tomtq = explode("<table width=\"774\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" bgcolor=\"#ABABAB\">",$file);
$tomtq = explode("</table>",$tomtq[1]);
$tomtq= $tomtq[0];
//$tomtq tom天气小偷
?>
天气预报 code来的
[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]
上一篇:php删除数组指定元素实现代码
栏 目:PHP代码
下一篇:php小技巧 把数组的键和值交换形成了新的数组,查找值取得键
本文标题:个人站长制做网页常用的php代码
本文地址:http://www.codeinn.net/misctech/102343.html






