<?php $str = 'a,b,c(a,b,c),d(a,b(a,b)),e'; $temp = preg_split('/(\w),/', $str, -1, PREG_SPLIT_DELIM_CAPTURE); print_r($temp); foreach($temp as $tok){ }
You have javascript disabled. You will not be able to edit any code.