From Habari Project
The Utils class has bunches of useful functions.
When tracing through the Habari source code, sometimes it's useful to display the value of a variable at a certain place in execution. Normally, you might use the PHP command print_r() to output this information, but without some extra markup, this may cause some formatting issues, and doesn't provide all of the information that might be useful for debugging.
Instead, Habari provides the Utils::debug command, which produces output like print_r(), but formats it nicely and provides a call stack. The call stack can be expanded to show the functions that were executed to arrive at that point in code. Each of the functions displayed also shows the parameter types passed to that function, and if you click on them they will toggle, revealing the parameter values.
To call Utils::debug(), you may pass zero or more parameters, the values of each will appear in the output along with their type information:
Utils::debug($foo, $bar, $baz);
This is a lot like debug, except it outputs the data in the firebug console.
returns an array of date information.
par: a unix timestamp. The function
Would return an array like the one below.
[seconds] => 23 [minutes] => 1 [hours] => 3 [mday] => 14 [wday] => 5 [mon] => 11 [year] => 2008 [yday] => 318 [weekday] => Friday [month] => November  => 1226631683 [mon0] => 11 [mday0] => 14
Checks the syntax of specified code.
par: the code one wants to check return: returns true or false.