Drupal - find what variables are available in a template

This is an easy way to find out what variables are available in a drupal template file (.tpl.php) using the php function get_defined_vars().


print '

';
print_r(get_defined_vars());
print '

';
?>

Heard about this on the lullabot drupal podcast, did a quick search and came across this post.