For those that may not be aware, the following is really useful when debugging PHP code:

Code:
$GLOBALS['log']->debug('Here is my variable:',
...