function D::getVal in QueryPath 6
Same name and namespace in other branches
- 7.3 qpa/qpa.phpunit.inc \D::getVal()
- 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
Code
function getVal($key) {
$t = $this->arr;
foreach ($key as $part) {
$t = $t[$part];
}
return $t;
}