我正在使用檔案獲取內容來顯示頁面的最新訊息。我的一些頁面標題不止一個詞。我如何處理單詞之間的空格。Title作品。Second title目前不作業。謝謝您的支持。
<?php echo file_get_contents('https://www.example.com/archiv?s='.$t['page.content_title'].''); ?>
uj5u.com熱心網友回復:
用這個:
<?php
echo file_get_contents('https://www.example.com/archiv?s='. urlencode($t['page.content_title']));
?>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/374943.html
標籤:php
下一篇:關于用PHP組合多個傳入變數
