Click here to Skip to main content
15,909,953 members

Comments by jba1991 (Top 112 by date)

jba1991 7-Jul-15 17:26pm View    
Good one
jba1991 11-May-15 6:30am View    
Any help?
jba1991 10-May-15 7:45am View    
I currently have this value returning using var_dump(json_decode($json, true));

array(4) { ["oauth_token"]=> string(50) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ["oauth_token_secret"]=> string(45) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ["user_id"]=> string(10) "123456890" ["screen_name"]=> string(8) "username" }


Is this correct?
jba1991 10-May-15 7:30am View    
json_decode() expects parameter 1 to be string, array given

I am getting this error when using json_decode. I am aware that that json encoded data is in an array, how do I convert this to a string before decoding?
jba1991 10-May-15 7:14am View    
I just read this wrong as json_encode not json_decode, so apologies for that. I've tried json_decode($json) with $json being my json formatted data, but nothing changed.