Skip to content

Commit

Permalink
update example for readme generation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Aug 30, 2022
1 parent 488cc3f commit cb7234d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
echo Emoji\replace_emoji('I like 🌮 and 🌯')."\n";


echo "\n";


$string = "Trešnja 🍒";
$emoji = Emoji\detect_emoji($string);
echo '.'.grapheme_substr($string, 0, $emoji[0]['grapheme_offset']).".\n";
echo '.'.substr($string, 0, $emoji[0]['byte_offset']).".\n";

0 comments on commit cb7234d

Please sign in to comment.