|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 68%||Total: 358 ||All time: 6,893 This week: 491|
This class can convert country code to unicode emoji flags.
It takes the code of a country and returns a string of unicode text of the country flag emoji.
|Unicode can also be used to display several types of flags including country flags.
This class can take the the letter code of a country and returns a Unicode string for the characters that represents the flag of a country.
Country Code ? ?? Emoji Flag ??
Converts a country code to emoji flag. Most flags use a 2-letter code, but some use more (eg England=gbeng, Scotland=gbsct, Wales=gbwls, etc).
Example in action: Screenshot of emoji flags inside phpmyadmin table.
Example in action: Screenshot of a terminal window displaying a plain text log file.
Emoji symbol is a textual replacement for a graphic image file while having the benefits of a graphic image. The image file is already present at your intended destination (a person's device), so why would you transmit the image to them again and again? -- Use emoji!
An image file equivalent to an emoji symbol may be tens, hundreds of kilobytes in size, while an emoji symbol is only several bytes. That's a bandwidth saving of around 10,000 times. If you use emoji instead of image files, you reduce your carbon footprint.
Plain Text Is Now ?Faux Rich Text
Now you can include emoji in plain text files, even in plain text emails, making them sharp, colourful and rich looking. You can put emoji flags into your database too!
Emoji support: ?platform- and ?location-dependent??
Not every platform supports emoji. Therefore, use with caution! To my knowledge, iOS, macOS, Android are capable of displaying emoji. Additionally, some platforms (or geographical regions) may not be able to display certain flags. If unsure, use this as a reference and easy way to test your platform: <http://unicode.org/emoji/charts/full-emoji-list.html>
echo flagMaster::emojiFlag('uk'); # ??
echo flagMaster::emojiFlag('gbwls'); # ???????
echo flagMaster::emojiFlag('gbsct'); # ???????
echo flagMaster::emojiFlag('gbeng'); # ???????
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.