File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ method. This is done using the index notation that is used in PHP::
4545
'first_name' => 'Wouter',
4646
);
4747

48-
echo $accessor->getValue($persons, '[first_name]'); // 'Wouter'
48+
echo $accessor->getValue($person, '[first_name]'); // 'Wouter'
4949
echo $accessor->getValue($person, '[age]'); // null
5050

5151
As you can see, the method will return ``null`` if the index does not exists.

0 commit comments

Comments
 (0)