Shortcode API « WordPress Codex
NOTE on confusing regex/callback name reference The zeroeth entry of the attributes array ($atts[0]) will contain the string that matched the shortcode regex, but ONLY if that differs from the callback name, which otherwise appears as the third argument t...