Created
February 23, 2021 16:43
-
-
Save szepeviktor/e1e724a936fe5f8ec117536ef9231fa6 to your computer and use it in GitHub Desktop.
Display all PHP Sodium constants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach(get_defined_constants() as $name => $value) { | |
if (substr($name, 0, 7) !== 'SODIUM_') continue; | |
printf('%s = %s%s', $name, $value, "\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment