Skip to content

Commit a6af83d

Browse files
committed
Fix examples in README
1 parent 97eb308 commit a6af83d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ The method returns a `QueryResult` object, which is a small wrapper around
8585
Example: To loop over all `650` fields having `$2 noubomn`:
8686

8787
```php
88-
foreach ($record->query('650{2=\noubomn}') as $field) {
88+
foreach ($record->query('650{$2=\noubomn}') as $field) {
8989
echo $field->getSubfield('a')->getData();
9090
}
9191
```
9292

9393
or we could reference the subfield directly, like so:
9494

9595
```php
96-
foreach ($record->query('650$a{2=\noubomn}') as $subfield) {
96+
foreach ($record->query('650$a{$2=\noubomn}') as $subfield) {
9797
echo $subfield->getData();
9898
}
9999
```

0 commit comments

Comments
 (0)