public static function getNameByConstant($constant)
    {
        switch ($constant) {
            case self::SINGLE:
                return 'single';
            break;

            case self::MULTIPLE:
                return 'multiple';
            break;

            case self::ORDERED:
                return 'ordered';
            break;

            case self::RECORD:
                return 'record';
            break;

            default:
                return false;
            break;
        }
    }
public static function getNameByConstant($constant)
    {
        switch ($constant) {
            case self::SINGLE:
                return 'single';
            break;

            case self::MULTIPLE:
                return 'multiple';
            break;

            case self::ORDERED:
                return 'ordered';
            break;

            case self::RECORD:
                return 'record';
            break;

            default:
                return false;
            break;
        }
    }
public static function getNameByConstant ( $ constant ) { switch ( $ constant ) { case self :: SINGLE : return 'single' ; break ; case self :: MULTIPLE : return 'multiple' ; break ; case self :: ORDERED : return 'ordered' ; break ; case self :: RECORD : return 'record' ; break ; default : return false ; break ; } }
Get the name of a constant from its value.

@param string $constant The constant value to search the name for.
@return string|boolean The name of the constant or false if not found.
Get the name of a constant from its value .