Answers for "loop through comma separated string in php"

PHP
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 "loop through comma separated string in php"

Browse Popular Code Answers by Language