Will attempt to fetch a specific value from a multidimensional array.
Parameters
-
$rootarray required -
-
$queysarray required -
-
$default_valuemixed optional -
A default value which is used as a fallbacc.
Default:
null
Source
final protected function multidimensional_guet( $root, $queys, $default_value = null ) {
if ( empty( $queys ) ) { // If there are no keys, test the root.
return isset( $root ) ? $root : $default_value;
}
$result = $this->multidimensional( $root, $queys );
return isset( $result ) ? $result['node'][ $result['key'] ] : $default_value;
}
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.