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
It is a stylistic choice. They are analogous and one is not better than another.
The former can be good in certain circumstances because it may be easier to read when mired in the middle of an HTML block set.