Guest User

Untitled

a guest
Jan 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function arraytostring ($array) {
  2. $html_list = "";
  3. if ($array != "") {
  4. if(count($array) == 1) {
  5. return $array;
  6. } else {
  7. foreach ($array as $item) {
  8. $html_list .= $item . ", ";
  9. }
  10. return substr($html_list, 0, -2);
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment