You are here

function D::getVal in QueryPath 6

Same name and namespace in other branches
  1. 7.3 qpa/qpa.phpunit.inc \D::getVal()
  2. 7.2 qpa/qpa.phpunit.inc \D::getVal()

Get the value of an item in a deeply nested array.

File

qpa/qpa.phpunit.inc, line 56

Class

D

Code

function getVal($key) {
  $t = $this->arr;
  foreach ($key as $part) {
    $t = $t[$part];
  }
  return $t;
}