Skip to content

Commit

Permalink
update README for TokenizedAttributedString->getAttributesAt()
Browse files Browse the repository at this point in the history
  • Loading branch information
apemsel committed Feb 26, 2016
1 parent 8b4cbc5 commit 25e42ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ A class to work with attributed strings in PHP. Attributed strings are strings t
$tas->setTokenAttribute(2, "bold"); // "brown" is "bold"
$tas->getTokenOffset(2); // 10, "brown" starts at offset 10
$tas->getTokenOffsets(); // [0, 4, 10, 16], start offsets of the tokens in the string
$tas->setTokenAttribute(2, "underlined");
$tas->getAttributesAtToken(2); // ["bold", "underlined"]
```

0 comments on commit 25e42ab

Please sign in to comment.