fork(11) download
  1. <?php
  2. $a = array();
  3. $b = implode(',',$a); // ""
  4. var_dump($b);
  5.  
  6. $a = array('foo');
  7. $b = implode(',',$a); // "foo";
  8. var_dump($b);
  9.  
  10. $a = array('foo','bar');
  11. $b = implode(',',$a); // "foo,bar";
  12. var_dump($b);
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
string(0) ""
string(3) "foo"
string(7) "foo,bar"