The ReflectionClassConstant class

(PHP 7 >= 7.1.0, PHP 8)

Einführung

The ReflectionClassConstant class reports information about a class constant.

Klassenbeschreibung

class ReflectionClassConstant implements Reflector {
/* Konstanten */
const int IS_PUBLIC = 1;
const int IS_PROTECTED = 2;
const int IS_PRIVATE = 4;
/* Eigenschaften */
public string $name;
public string $class;
/* Methoden */
public __construct(object|string $class, string $constant)
public static export(mixed $class, string $name, bool $return = ?): string
public getAttributes(?string $name = null, int $flags = 0): array
public getDocComment(): string|false
public getModifiers(): int
public getName(): string
public getValue(): mixed
public isEnumCase(): bool
public isFinal(): bool
public isPrivate(): bool
public isProtected(): bool
public isPublic(): bool
public __toString(): string
}

Eigenschaften

name

Name of the class constant. Read-only, throws ReflectionException in attempt to write.

class

Name of the class where the class constant is defined. Read-only, throws ReflectionException in attempt to write.

Vordefinierte Konstanten

ReflectionClassConstant Modifiers

ReflectionClassConstant::IS_PUBLIC

Indicates public constants. Prior to PHP 7.4.0, the value was 256.

ReflectionClassConstant::IS_PROTECTED

Indicates protected constants. Prior to PHP 7.4.0, the value was 512.

ReflectionClassConstant::IS_PRIVATE

Indicates private constants. Prior to PHP 7.4.0, the value was 1024.

Hinweis:

The values of these constants may change between PHP versions. It is recommended to always use the constants and not rely on the values directly.

Inhaltsverzeichnis

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

lfuzosin Köp billigt. Köp Alfuzosin Online Express-frakt - Alfuzosin försäljningspri

Köp billigt Alfuzosin. Köp Alfuzosin Online Express-frakt Behöver du pålitliga, högkvalitativa mediciner, men vill inte lämna hemmet för at ...

Geschrieben von travelder am 20.06.2026 03:59:25
Forum: Bücher-Forum
estomed Befehl. Restomed ohne Rezept - Restomed kein rx billig. Duisburg — Deutschla

Befehl Restomed. Restomed ohne Rezept Sie benötigen zuverlässige, hochwertige Medikamente, möchten aber nicht das Haus verlassen, um sie zu kau ...

Geschrieben von drawer am 20.06.2026 03:59:04
Forum: Fragen/Vorschläge zum Forum
tromectol Koop legaal. Goedkoopste manier om Stromectol online te kopen - Koop korti

Koop legaal Stromectol. Goedkoopste manier om Stromectol online te kopen Op zoek naar eersteklas medicijnen zonder dat u uw huis hoeft te verlaten ...

Geschrieben von travelder am 20.06.2026 03:58:28
Forum: Projekthilfe
odafinil Comprimés. Modafinil à Vendre Nimes - Modafinil Pharmacie En Ligne Paris. A

Comprimés Modafinil. Modafinil à Vendre Nimes Avez besoin de médicaments de haute qualité ? Nous sommes là pour vous ! Notre pharmacie en lig ...

Geschrieben von drawer am 20.06.2026 03:58:23
Forum: IT-Security