I have been working on some QR codes, I need to pass an array to the QR with the data but it needs encoding. The data itself is a json_array which is used to genera
json_array
You can try this:
urlencode($string);
It encodes a string to be appended as an url parameter. So if you have an array, try:
urlencode(json_encode($array);