lcherone / emoji-parse Goto Github PK
View Code? Open in Web Editor NEWParses http://unicode.org/Public/emoji/13.0/emoji-test.txt into a workable PHP array for whatever..
Parses http://unicode.org/Public/emoji/13.0/emoji-test.txt into a workable PHP array for whatever..
Hi Lawrence - a few years ago you kindly helped me out with a Stack Overflow query and wrote this repository to help with that. Thank you again.
I don't know why, but the code works with the Unicode 5 spec but for some reason, does not work with the Unicode 13 spec.
When I run the code, I see these errors:
Notice: Undefined variable: group in C:\Apache24\htdocs\ch_0002a.php on line 41
Notice: Undefined variable: group in C:\Apache24\htdocs\ch_0002a.php on line 40
Where lines 40 and 41 are:
$emoji[$group][$subgroup][] = [
'group' => trim($group),
The two TXT files (versions 5 and 13) lay out the emoji data in the same structure, with the following convention - e.g.
# group: Smileys & Emotion
# subgroup: face-smiling
# subgroup: face-affection
# subgroup: face-tongue
...
# group: People & Body
# subgroup: hand-fingers-open
# subgroup: hand-fingers-partial
# subgroup: hand-single-finger
...
And so on.
The only difference I can see between the 2 text files is that the first # group
occurs on line 23 on the version 5 TXT file and on line 33 on the version 13 TXT file, but I can't see the extra info in those additional 10 lines on the version 13 TXT file would cause this issue.
Sorry if I am missing something obvious.
Can you see what might be causing this?
Thanks very much for your time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.