Semantic MediaWiki and related extensions
Static Public Member Functions | List of all members
SMW\Utils\DotArray Class Reference

Static Public Member Functions

static get (array $array, $key, $default=false)
 

Detailed Description

Utility class to resolve array access using the dot path syntax.

For example, an array with `[ 'foo' => [ 'bar' => [ 'foobar' => 42 ] ] ]can be accessed using a simple dot path such asfoo.bar.foobar`.

GNU GPL v2+

Since
3.2
Author
mwjames

Member Function Documentation

◆ get()

static SMW\Utils\DotArray::get ( array  $array,
  $key,
  $default = false 
)
static
Since
3.2
Parameters
array$array
string$key
mixed$default
Returns
mixed

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy