Posted By

zreedeecom on 10/31/10


Tagged

php array conversion


Versions (?)

Array to string


 / Published in: PHP
 

  1. <?php
  2.  
  3. $array = array( [0] => "value 1", [1] => "value 2" );
  4. $output = implode( ",", $array );
  5. echo $output;
  6.  
  7. # This will output:
  8. # value 1,value 2

Report this snippet  

You need to login to post a comment.