Answers for "explose array into commas 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
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 "explose array into commas php"

Browse Popular Code Answers by Language