php conditional code

I'm looking for the php code to mimic the shortcodes function:

[free]free content[/free]
[member]etc[/member]

I'm trying to this in a category template.

Is there a list somewhere of php template tags for membership?

Thanks!