douba7784 2011-05-12 12:24
浏览 54
已采纳

http_build_query但替换&with; 用PHP?

http_build_query($array) will convert array to the format of a=1&b=2,

But how to make it convert to the format of a=1;b=2?

Is there a native function there?

  • 写回答

2条回答 默认 最新

  • dongsong8932 2011-05-12 12:26
    关注

    The third parameter to http_build_query is the separator; call it with http_build_query($array, "", ";") to get what you're after.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?