Jump to content

Implode JSON


NebuJohn

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.