File tree
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed components/property_access
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -45,7 +45,7 @@ method. This is done using the index notation that is used in PHP::
|
45 | 45 | 'first_name' => 'Wouter',
|
46 | 46 | );
|
47 | 47 |
|
48 |
| -echo $accessor->getValue($persons, '[first_name]'); // 'Wouter' |
| 48 | +echo $accessor->getValue($person, '[first_name]'); // 'Wouter' |
49 | 49 | echo $accessor->getValue($person, '[age]'); // null
|
50 | 50 |
|
51 | 51 | As you can see, the method will return ``null`` if the index does not exists.
|
|
You can’t perform that action at this time.
0 commit comments