public static function selectEnvironment($env = null) 
    {
        if (strlen($env) < 1) {
            $getenv = self::_getEnvironment();
            if (strlen($getenv) > 0) {
                $env = $getenv;
            } else {
                $env = "development";
            }
        }
        return $env;
    }
public static function selectEnvironment($env = null) 
    {
        if (strlen($env) < 1) {
            $getenv = self::_getEnvironment();
            if (strlen($getenv) > 0) {
                $env = $getenv;
            } else {
                $env = "development";
            }
        }
        return $env;
    }
public static function selectEnvironment ( $ env = null ) { if ( strlen ( $ env ) < 1 ) { $ getenv = self :: _getEnvironment ( ) ; if ( strlen ( $ getenv ) > 0 ) { $ env = $ getenv ; } else { $ env = "development" ; } } return $ env ; }
Return the current environment

@param string $env enviroment to be forced

@return string environment
Return the current environment