Available global functions
From Site Foundry
debug
@param array/string $var
Description
Outputs any variable (array, string, integer) in a nicely formatted HTML way. Much better that using print_r.
cleanUp
@param array $var
@param string $way
Description
Returns a cleaned up array of values, with either added/stripped slashes (depending on the way variable - 'in' or 'out'), trim'd, and multiple white spaces removed.
LogError
@param array/string $var
Description
Will save the array/string in the error log file set up in the config file. This is intended for use with processes such as AJAX, or individual responders that you can't directly debug to your browser. It's also good if you have a particular error state that you would like to monitor over time.

