json - Encoding an array for url in PHP -
i have been working on qr codes, need pass array qr data needs encoding. data json_array
used generate pdf.
if use base64
encoding qr code stupidly large, , when using ascii85
breaks qr.
can let me know of encoding praticies work in url, shorted coding betetr. qr_generator.php?data={encoded_json_array}
you can try this:
urlencode($string);
it encodes string appended url parameter. if have array, try:
urlencode(json_encode($array);
Comments
Post a Comment