How do you define a constant in php?

by define() directive,
like define (“MYCONSTANT”, 500);