Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-returnArgs

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  returnArgs   Lines 1042-1061 (19 lines) file  utilsDebug.php   Last mod: Mon 2021-05-03 17:55:24

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;
        }

?>