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
You can use both, but preffered style and currently known style is the standard if(expr).
if(expr)