Keys →
Functions ↓
function returnArgs ( $list ) {#-k string parse#- Return an array of arguments. This is slightly complicated in that a single argument can contain a comma...#- eko ( date('Y-m-d',$t), $a ) should show as 2 args, not 3. $j = $depth = 0; for ($i=0;$i<strlen($list);$i++) { if ($list[$i] == '(') $depth++; if ($list[$i] == ')') $depth--; if ($depth < 0) break; if (($list[$i] == ',') && !$depth) $j++; if (!strlen($ar[$j]) && (($list[$i] == " ") || ($list[$i] == ","))) { /* do nothing */ } else $ar[$j] .= $list[$i]; } return $ar; }?>