Answers for "php single comma separated string"

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

foreach comma separated string php

$variable = 'value1, value2, value3, value4, value5';
   $var=explode(',',$variable);
   foreach($var as row)
    {
    //do your code here
    }
Posted by: Guest on May-06-2021

Code answers related to "php single comma separated string"

Browse Popular Code Answers by Language