Sometimes the developer codex can be a little bit vague on what is returned in which case, and $wpdb->get_var was such a case for me recently. I needed to know what get_var would return on an empty result and the developer resource was a little unclear on that. So I took a quick look at the source code: