Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #php #environment #variable
ADD COMMENT
Topic
Name
1+8 =