public function getEnvironmentValue($name)
    {
        $name = strtolower($name);
        $service = $this->getService();

        foreach ($service->getEnvironment() as $environment) {
            list($key, $value) = explode('=', $environment);
            if (strtolower($key) !== $name) {
                continue;
            }

            return $value;
        }

        return null;
    }
public function getEnvironmentValue($name)
    {
        $name = strtolower($name);
        $service = $this->getService();

        foreach ($service->getEnvironment() as $environment) {
            list($key, $value) = explode('=', $environment);
            if (strtolower($key) !== $name) {
                continue;
            }

            return $value;
        }

        return null;
    }
public function getEnvironmentValue ( $ name ) { $ name = strtolower ( $ name ) ; $ service = $ this -> getService ( ) ; foreach ( $ service -> getEnvironment ( ) as $ environment ) { list ( $ key , $ value ) = explode ( '=' , $ environment ) ; if ( strtolower ( $ key ) !== $ name ) { continue ; } return $ value ; } return null ; }
Get environment value.

@param $name
The name of the environment variable.

@return string
The environment value; otherwise null.
Get environment value .