Answers for "how to create a list in php separated with commas"

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
0

create array from string with commas php

$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Posted by: Guest on November-25-2020

Code answers related to "how to create a list in php separated with commas"

Browse Popular Code Answers by Language