The PHP function http_build_query is quite handy for building an URL with GET parameters. But sometimes I like to use value-less "boolean" parameters, like so:
/mypage?subscription-id=42&cancel-renewal
Which I then check with a simple isset. Can I achieve this result with http_build_query?
EDIT: Assigning empty values to the parameter does not seem to work :
cancel-renewal => ''results incancel-renewal=cancel-renewal => nullresults in the parameter being omittedcancel-renewal => falseresults incancel-renewal=0
empty valueto that key.$query['cancel-renewal'] = "";. I'm not sure..cancel-renewal=cancel-renewalis the same ascancel-renewal=