Answers for "convert string with commas into array in php"

PHP
4

array to string separated by comma php

$arr = array ( 0 => "lorem", 1 => "ipsum", 2 => "dolor");

$str = implode (", ", $arr);
Posted by: Guest on September-22-2020
1

how to convert array to string with commas in php

$string = implode(', ', $tags);
Posted by: Guest on September-12-2020

Code answers related to "convert string with commas into array in php"

Browse Popular Code Answers by Language