avatar
split comma string into array PHP
Input: 20,21
$arr = preg_split ("/\,/", $keyword);
foreach ($arr as $item) { 
   console.log($item) 
}
Output:
20
21 
You need to login to do this manipulation!