title: json_encode error Object of class stdClass could not be converted to string
body: <p>I have a json_encode element and i have to implode it like that</p>
  
  <pre><code>&lt;?php
  $user = json_decode($var);
  $fetch_array = implode(",", $user);
  ?&gt;
  </code></pre>
  
  <p>with the debug print_f the array result like that</p>
  
  <pre><code>Array( [0] =&gt; stdClass Object ( [id] =&gt; 4 [name] =&gt; Elis ) 
         [1] =&gt; stdClass Object ( [id] =&gt; 5 [name] =&gt; Eilbert ))1
  </code></pre>
  
  <p>it result a error: Object of class stdClass could not be converted to string</p>
  
  <p>My goal is use this json array with the statment SELECT IN on mysql,</p>
  
  <pre><code>SELECT * FROM table WHERE field IN $user
  </code></pre>
  
  <p>I tought that i have to implode it. if I delete the function implode it show me (array,array)</p>
  
  <p>How can i do that?</p>