Skip to content

Commit 929bd1c

Browse files
committed
Update introduction.rst
1 parent b38edbc commit 929bd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/property_access/introduction.rst

Lines changed: 1 addition & 1 deletion
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)