PHP alternative syntax

Added some guidelines for when/how to use the if/endif syntax.