0
我試圖從 <a class="link" href="http://www.x.ro/index.php?page=profile&aid=560030" title="Profilul lui
preg_match_all之間的兩個
。減去鏈路我試圖
<?php
$output2='<a class="link" href="http://www.x.ro/index.php?page=profile&aid=560030" title="Profilul lui';
preg_match_all('#<a\sclass="link"\shref="(.*?)"\stitle="Profilul#i', $output2, $match);
print_r ($match);
?>
沒什麼所示... 陣列([0] =>數組([0] = >
解決......好像只是沒t show anything, i don
的print_r知道爲什麼。的var_dump工作就像一個魅力
嘗試'的var_dump()'來代替(** **總是用它進行調試,而不是'echo'或'print_r') – zerkms
有效。謝謝。我不知道爲什麼print_r沒有工作... – user2761358
既然這個問題現在已經解決了,有人可以寫一個答案並將其標記爲已解決嗎? –