jeudi 9 mai 2019

Get a list of constants outside of PHP class

I'm trying to get a list of all the constants that are defined outside of a PHP class but only if they start with a specific prefix (see this tutorial) and saw the ReflectionClass::getConstants functionality but this requires a class.

How do I achieve the same functionality if the constants are defined outside of a class?





Aucun commentaire:

Enregistrer un commentaire