public static function validateConstant($name)
    {
        $name = self::validateNamingConvention($name);
        if (self::isKeyword($name)) {
            $name = self::NAME_PREFIX . ucfirst($name);
        }
        return $name;
    }
public static function validateConstant($name)
    {
        $name = self::validateNamingConvention($name);
        if (self::isKeyword($name)) {
            $name = self::NAME_PREFIX . ucfirst($name);
        }
        return $name;
    }
public static function validateConstant ( $ name ) { $ name = self :: validateNamingConvention ( $ name ) ; if ( self :: isKeyword ( $ name ) ) { $ name = self :: NAME_PREFIX . ucfirst ( $ name ) ; } return $ name ; }
Validates a constant name against PHP naming conventions.

@param string $name the name of the constant to test
@return string The validated version of the submitted constant name
Validates a constant name against PHP naming conventions .