get() public static method

Return the value stored under given key in the array with dot notation support.
public static get ( array $array, string $key, mixed $default = null ) : mixed
$array array
$key string
$default mixed
return mixed
コード例 #1
0
ファイル: Config.php プロジェクト: kraken-php/framework
 /**
  * @override
  * @inheritDoc
  */
 public function get($key = '', $default = null)
 {
     return $key === '' ? $this->getAll() : ArraySupport::get($this->config, $key, $default);
 }