Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function arraytostring ($array) {
- $html_list = "";
- if ($array != "") {
- if(count($array) == 1) {
- return $array;
- } else {
- foreach ($array as $item) {
- $html_list .= $item . ", ";
- }
- return substr($html_list, 0, -2);
- }
- }
- }
Add Comment
Please, Sign In to add comment