-1
$ text = file_get_contents(「http://127.0.0.1/name.php?name=Lary」);file_get_contents正在拾取所有代碼而不是文本
我想用它來獲取文本,而不是html。
$ text = file_get_contents(「http://127.0.0.1/name.php?name=Lary」);file_get_contents正在拾取所有代碼而不是文本
我想用它來獲取文本,而不是html。
試試這個我還沒有測試過。
$html = file_get_contents("http://127.0.0.1/name.php?name=Lary");
$text = strip_tags($html);
echo ($text);
此處瞭解詳情:strip_tags
https://pt.stackoverflow.com/ – David
我可以在40分鐘內再次發佈,因爲你在這裏,你能回答我的問題? –
什麼是您的問題?你想要解決的問題具體是什麼?解釋細節。 – David