php get env variables from terminal code example
Example: 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