Sind private Konstanten in PHP möglich? [Duplikat]
Posted: 30 Apr 2025, 19:18
PHP erlaubt < /p>
nicht
In Wirklichkeit sind Konstanten global, weil ich überall auf my_const zugreifen kann.>
nicht
Code: Select all
class Foo
{
private const my_private_const;
< /code>
Ermöglicht jedoch < /p>
natürlichconst my_const;