swoole-framwork/common/functions.php

14 lines
285 B
PHP
Raw Permalink Normal View History

2024-05-31 14:57:01 +08:00
<?php
if (! function_exists('env')) {
/**
* Gets the value of an environment variable.
*
* @param string $key
* @param mixed $default
* @return mixed
*/
function env($key, $default = null)
{
return Env::get($key, $default);
}
}