我有一些網址類似如下的URL:替換URL查詢字符串與str_replace函數
https://example.com/xyz/jjJAjsjahjsjhUAUiOAkskpAs? q = 1280wq
https://example.com/xyz/jjJAjsjahjsjhUAUiOAkskpAs? q = 5080wq
https://example.com/xyz/jjJAjsjahjsjhUAUiOAkskpAs? q = 860
https://example.com/xyz/jjJAjsjahjsjhUAUiOAkskpAs? Q = 86058
現在我要替換q
值與像589的恆定值,我怎麼能在PHP str_replace
做呢?