I'm using a php proxy to bypass cross domain ajax issues
My php:
return array(
'status' => 'ok',
'header' => $header,
'content' => $content
);
So now my $response['content'] holds my content, but i also want my headers.
If i:
echo $response['content'];
Then i get my response like:

Which is what i need! but i also want to have the $response[header] in the echo. But if i:
echo $response;
I get:

How can I get both in a json response so i can then use it in my javascript code? And why is it just returning plaintext 'Array'
If i use json_encode its not formatted properly like in my first example.

Its lost all its formatting..?
echodoes not print out objects. Perhaps usevar_dumpinstead.json_encode()maybe?