Bonito Bonito - 1 year ago 83
PHP Question

Convert an array in a string with PHP

I have this array in PHP:

[module] => booking-edit
[action] => new
[cid] => 2016-08-21

How can I convert it to a string like this:


Thanks for your help.

Answer Source

You can try http_build_query

$string = http_build_query($array);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download