foreach comma separated string php

Solutions on MaxInterview for foreach comma separated string php by the best coders in the world

showing results for - "foreach comma separated string php"
Emiliano
28 Oct 2016
1$variable = 'value1, value2, value3, value4, value5';
2   $var=explode(',',$variable);
3   foreach($var as row)
4    {
5    //do your code here
6    }