From 25e42abcba20a8fc8b695435320fa87b10d1d045 Mon Sep 17 00:00:00 2001 From: Adrian Pemsel Date: Fri, 26 Feb 2016 13:05:13 +0100 Subject: [PATCH] update README for TokenizedAttributedString->getAttributesAt() --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8aa1ed1..7cca97d 100644 --- a/README.md +++ b/README.md @@ -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"] ```