Answers for "how to check the environment variables on my php app"

PHP
1

php get environment variable

$value = getenv("VARNAME");
// returns FALSE if VARNAME does not exist

$env_vars = getenv();
// if no name is specified, an associative array 
// with all environment variables is returned
Posted by: Guest on July-07-2020

Code answers related to "how to check the environment variables on my php app"

Browse Popular Code Answers by Language