print FOO::PATH;
class FOO {
const PATH = preg_replace( '/^\//', '', __DIR__ );
}
print FOO::PATH;
A constant is an identifier (name) for a simple value. As the name suggests, that value cannot change during the execution of the script (except for magic constants, which aren't actually constants).