PHP Query String Manipulation

前端 未结 4 1744
我寻月下人不归
我寻月下人不归 2021-01-17 06:16

Any one have the ultimate PHP function(s) to add/remove parameters from a query string? It needs to handle all possible cases, Ive seen ones that handle some cases, but not

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-17 07:07

    I don't know about the ultimate solution. But PHP has several very helpful native functions that making your own defined function about should be easy.

    Check out: html_build_query(), parse_str(), and parse_url()

提交回复
热议问题