我想在我客戶的網站主頁上颳去所有的網址,以便我可以將它遷移到wordpress。問題是我似乎無法得到重複刪除的網址列表。 下面的代碼: $html = file_get_contents('http://www.catwalkyourself.com');
$dom = new DOMDocument();
@$dom->loadHTML($html);
// grab all the
這是一個問題。 我正在用數組中的新行爆炸一個字符列表。並做它獨特的數組。但它沒有按預期工作。下面 是代碼: $list = "test
ok
test
test
ok
ok
test";
$list_explode = explode("\n", $list); //exploding the characters of the list from the input
//disp