Well the question is self explanatory.
In PHP when do I use the if/endif notation instead of the standard if(something){} notation?
if/endif
if(something){}
Exa
I mostly use if/endif when stopping and starting the php code block in between, so nearly always when raw html is being outputted.
For example:
Lorem ipsum.
This looks, at least in my opinion, better than the following: