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

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  validateVariable   Lines 273-283 (10 lines)Added: 2012-04-07 file  utilsJson.php   Last mod: Mon 2021-02-22 18:04:09

function validateVariable $v )
        {       
#-k     parse
#-      make sure $v is a string that can become a variable. return false if not
#-d     4/7/12  Added 

        
$valid "/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/";
        if (
preg_match($valid,$v) == 1) return true;
        return 
false;
        }

?>