Skip to content

Commit

Permalink
Fix examples in README
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Jul 2, 2017
1 parent 97eb308 commit a6af83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ The method returns a `QueryResult` object, which is a small wrapper around
Example: To loop over all `650` fields having `$2 noubomn`:

```php
foreach ($record->query('650{2=\noubomn}') as $field) {
foreach ($record->query('650{$2=\noubomn}') as $field) {
echo $field->getSubfield('a')->getData();
}
```

or we could reference the subfield directly, like so:

```php
foreach ($record->query('650$a{2=\noubomn}') as $subfield) {
foreach ($record->query('650$a{$2=\noubomn}') as $subfield) {
echo $subfield->getData();
}
```
Expand Down

0 comments on commit a6af83d

Please sign in to comment.