![](/img/trans.png)
[英]How to retrieve data from database and display it in a table format through PHP?
[英]How to use (-) symbol to leave spaces when making links through data retrieve from the database in php
我想為一個鏈接寫一個句子(從數據庫中檢索),但它用 %20 標記來表示空格。我想擺脫這個。請幫幫我。 我已經嘗試了所有方法,但它們沒有任何意義。請幫我解決這個問題! 謝謝 !
我希望頂部得到一個像這樣的干凈網址:
how-to-get-rid-of-the-20-from-my-url-when-extracting-a-query-from-phpmyadmin
使用str_replace()
:
$link = str_replace(' ', '-', $sentence);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.