NebuJohn Posted July 25, 2013 Share Posted July 25, 2013 Below Given is my Code. $array=$_POST[number]; $jstring = json_decode($array,true); $sa = "'".implode("','",$jstring)."'"; The error is given below. Warning: implode() [function.implode]: Invalid arguments passed <root> on line <line no> 'number' is a JSON object. Link to comment https://forums.phpfreaks.com/topic/280494-implode-json/ Share on other sites More sharing options...
Muddy_Funster Posted July 25, 2013 Share Posted July 25, 2013 need more info Link to comment https://forums.phpfreaks.com/topic/280494-implode-json/#findComment-1442078 Share on other sites More sharing options...
NebuJohn Posted July 25, 2013 Author Share Posted July 25, 2013 May i Know what all information you need more. number is a Jason object which holds numbers from mobile contact. I was able to append that into a file. Now i need that data to be fetched into a SQL query as comma separated string. Link to comment https://forums.phpfreaks.com/topic/280494-implode-json/#findComment-1442080 Share on other sites More sharing options...
NebuJohn Posted July 25, 2013 Author Share Posted July 25, 2013 I fixed this problem. Sharing with others. $array=$_POST[number]; $jstring = (array)json_decode($array,true); $sa = "'".implode(',',$jstring)."'"; Link to comment https://forums.phpfreaks.com/topic/280494-implode-json/#findComment-1442094 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.