I am working on a enrollment system for a judo club. I am using a string to store the ID\'s of people, who showed up. It looks somthing like this:
0,3,4,7,8,10,
$str = '0,3,4,7,8,10'; $arr = explode(',',$str);
Use explode()
$ids = explode(',', '0,3,4,7,8,10');
use EXPLODE
EXPLODE
$num = "0,3,4,7,8,10"; $pieces = explode(",", $num );