Extracts all the hashtags and the indices they occur at from the tweet.
public extractHashtagsWithIndices ( ) : array | ||
리턴 | array | The hashtag elements in the tweet. |
/** * Auto-link #hashtag references in the provided Tweet text. The #hashtag links will have the hashtagClass CSS class * added. * * @return string that auto-link HTML added * @since 1.1.0 */ public function autoLinkHashtags($tweet = null) { if (is_null($tweet)) { $tweet = $this->tweet; } $entities = $this->extractor->extractHashtagsWithIndices($tweet); return $this->autoLinkEntities($tweet, $entities); }