时间:2021-07-01 10:21:17 帮助过:6人阅读
- <!--
- Code highlighting produced by Actipro CodeHighlighter (freeware)
- http://www.CodeHighlighter.com/
- -->csdn
- <!--
- Code highlighting produced by Actipro CodeHighlighter (freeware)
- http://www.CodeHighlighter.com/
- -->csdn
- <!--
- Code highlighting produced by Actipro CodeHighlighter (freeware)
- http://www.CodeHighlighter.com/
- -->csdn
- <!--
- Code highlighting produced by Actipro CodeHighlighter (freeware)
- http://www.CodeHighlighter.com/
- -->csdn
- <!--
- Code highlighting produced by Actipro CodeHighlighter (freeware)
- http://www.CodeHighlighter.com/
- -->csdn
- <!--
- Code highlighting produced by Actipro CodeHighlighter (freeware)
- http://www.CodeHighlighter.com/
- -->
- $out=strtolower(@file_get_contents(http://www.xxx.com));
- if($out){
- $out=str_replace("\r\n","",$out);
- $out=str_replace("\r","",$out);
- $out=str_replace("\n","",$out);
- $havelink=preg_match_all('/(.*?)<\/a>/i', $out, $m);
- if($havelink||strstr($robots,'nofollow')){
- echo "友情链接存在";
- }
- }
- $array = <<
- <div class="">
- <ul class="m-news-opt fix">
- <li class="opt-item">
- <a href="/PHPjiqiao-114236.html" target="_blank"><p>< 上一篇</p><p class="ellipsis">数组array_sum()如何求不了总和</p></a>
- </li>
- <li class="opt-item ta-r">
- <a href="/PHPjiqiao-114238.html" target="_blank"><p>下一篇 ></p><p class="ellipsis">phpusort排序有关问题</p></a>
- </li>
- </ul>
- </div>