Welcome Guest, Not a member yet? Register   Sign In
sending three arrays over json
#1

(This post was last modified: 03-29-2018, 07:54 PM by richb201.)

I have 3, one dimensional arrays, $PR, $AC, and $BC that I want to json_encode and send as one unit back to my browser app:
$this->output
 ->set_content_type('application/json')
 ->set_output(json_encode($data));

I thought I could combine them with $data=$BC+$AC+$PR but that is not working. On the client side I am just seeing $BC. Can I create a three d array and send it over the link?

I also want to send a checksum. Any way to create this checksum?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
sending three arrays over json - by richb201 - 03-29-2018, 07:53 PM
RE: sending three arrays over json - by richb201 - 03-30-2018, 04:00 AM
RE: sending three arrays over json - by richb201 - 03-30-2018, 02:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB