Heim >Backend-Entwicklung >PHP-Tutorial > 求指导简化~解决办法
求指导简化~
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <?php //调用格式:localhost/getpro.php?userid=slowstang95/// $userid=$_GET["userid"]; $url="http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback2&userid=".$userid; $str=file_get_contents($url); $start='</span> <span class="mbg-l"> ( '; $end='<img src="/static/imghwm/default1.png" data-src="http://q.ebaystatic.com/a'," class="lazy" echo function str_substr strpos substr return alt=" 求指导简化~解决办法 " > </span>
$userid=$_GET["userid"]; $url="http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback2&userid=".$userid; $str=file_get_contents($url); $pattern='/<span class="mbg-l">\s*\((.*?)<img src="http:%5C/%5C/q%5C.ebaystatic%5C.com%5C/a/';%0Apreg_match(%24pattern,%24str,%24match);%0Aprint_r(%24match%5B1%5D);%20<div%20class=" clear alt=" 求指导简化~解决办法 " > </span>