Here is and here are:
When you produce (give) something. Is
used with singular "ticket" and are
with plural "dollars."
As for here you are
(informal) used when you are giving something to somebody
The same meaning as above, but as informal expession.
Here you are. This is what you were asking for.