checkset
dstruct_autoloader
dstruct_shutdown_fn
hsc
html_encode
html_specialchars
APP_ROOT
checkset(string $var, mixed $default) : string
echo 'posted var:' . checkset($_POST['var']);
string
&$var
mixed
Returns this if the $var param is !isset()
string
dstruct_autoloader(string $class_name)
Attempts to autoload classes and then caches the results. See the 'autoloader_directories' property defined in the class constructor for Prefs for more information.
string
dstruct_shutdown_fn()
PHP calls the shutdown function at the end of processing the script. Any un-caught errors will be seen in this function and are emailed if required.
see | \global\Prefs::DEV |
---|
hsc(string $var)
Most useful for re-encoding where a user form has not validated and inputs are being echoed to browser.
todo | DOES NOT APPEAR TO WORK IF YOU PASS AN ARRAY ELEMENT e.g. hsc($data['element']); |
---|
string
html_encode(string $var) : string
Use instead of htmlentities.
string
string
html_specialchars(string $var) : string
Use instead of htmlspecialchars.
string
string
APP_ROOT