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

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  prtList   Lines 964-997 (33 lines) file  utilsDebug.php   Last mod: Mon 2021-05-03 17:55:24

function prtList ()
        {
#-k     print   debug
#-      Print multiple variables to the log

        
$s ' . . . . . . . . . . . . . . . . . . . . . . . ';
        
prt stackPlace(), );
        
$ar callingVars );
        
$len 0;

        
prt '<pre>' );
        for (
$ii=0;$ii<count($ar);$ii++)
                {
                if (
is_bool($ar[$ii]['cont']))
                        {
                        
$ar[$ii]['vlen'] = 'bool';
                        
$ar[$ii]['cont'] = boolval($ar[$ii]['cont']) ? 'bool-true' 'bool-false';
                        }
                
$len max($len,strlen$ar[$ii]['name'] . ' (' $ar[$ii]['vlen'] ));
                }

        for (
$ii=0;$ii<count($ar);$ii++)
                {
                
$ff $ar[$ii]['name'] . ' (' $ar[$ii]['vlen'];
                if (
is_array($ar[$ii]['cont'])) { $ll ') : [' $ar[$ii]['cont'][0] . ']'; }
                else                            { 
$ll ') : [' htmlspecialchars($ar[$ii]['cont']) . ']'; }

                
prt $ii ': ' substr($s,0,$len-strlen($ff)) .
                        
$ff $ll );
                }

        
prt '</pre>' );
        }

?>