get() public static méthode

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
Résultat mixed
Exemple #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function get($key = '', $default = null)
 {
     return $key === '' ? $this->getAll() : ArraySupport::get($this->config, $key, $default);
 }