avatar
PHP Array to String?

Guest 246 25th Jan, 2019

                                           
                         What is the best method for converting a PHP array into a string?
I have the variable $type which is an array of types.

Simply use implode

implode("|",$type);
                      
                                       
To share this paste, please copy this url and send to your friends.
RAW Paste Data