Page 1 of 1

Sind private Konstanten in PHP möglich? [Duplikat]

Posted: 30 Apr 2025, 19:18
by Anonymous
PHP erlaubt < /p>

nicht

Code: Select all

class Foo
{
private const my_private_const;
< /code>

Ermöglicht jedoch < /p>

natürlichconst my_const;
In Wirklichkeit sind Konstanten global, weil ich überall auf my_const zugreifen kann.>