Skip to content

Php Usage

Shayan Rais edited this page Aug 7, 2016 · 1 revision

#Procedural PHP Codepoints

<?php 

include("codepoint/People.php");

//https://www.emojibase.com/emoji/1f600/grinningface
echo unserialize(PEOPLE_GRINNING_FACE)[0]; //0x1f600
echo "<br>";

//https://www.emojibase.com/emoji/263a/whitesmilingface
echo unserialize(PEOPLE_WHITE_SMILING_FACE)[0]; //0x263a
echo "<br>";

//http://emojipedia.org/person-raising-both-hands-in-celebration-emoji-modifier-fitzpatrick-type-1-2/
echo unserialize(PEOPLE_PERSON_BOTH_HAND_CELEBRATION_TYPE_1_2)[0]; //0x1f64c
echo "<br>";

//http://emojipedia.org/family-man-woman-girl/
echo unserialize(PEOPLE_FAMILY_MAN_WOMEN_GIRL)[0]; //0x1F468
echo "<br>";

?>

String

<?php 

include("string/People.php");

//https://www.emojibase.com/emoji/1f600/grinningface
echo PEOPLE_GRINNING_FACE; //😀
echo "<br>";

//https://www.emojibase.com/emoji/263a/whitesmilingface
echo PEOPLE_WHITE_SMILING_FACE; //☺
echo "<br>";

//http://emojipedia.org/person-raising-both-hands-in-celebration-emoji-modifier-fitzpatrick-type-1-2/
echo PEOPLE_PERSON_BOTH_HAND_CELEBRATION_TYPE_1_2; //🙌ðŸÂ�Â»í¿»
echo "<br>";

//http://emojipedia.org/family-man-woman-girl/
echo PEOPLE_FAMILY_MAN_WOMEN_GIRL; //👨�👩�👧
echo "<br>";

?>

#OOP PHP Codepoints

<?php 

include("codepoint/People.php");

//https://www.emojibase.com/emoji/1f600/grinningface
echo People::$GRINNING_FACE[0]; //0x1f600
echo "<br>";

//https://www.emojibase.com/emoji/263a/whitesmilingface
echo People::$WHITE_SMILING_FACE[0]; //0x263a
echo "<br>";

//http://emojipedia.org/person-raising-both-hands-in-celebration-emoji-modifier-fitzpatrick-type-1-2/
echo People::$PERSON_BOTH_HAND_CELEBRATION_TYPE_1_2[0]; //0x1f64c
echo "<br>";

//http://emojipedia.org/family-man-woman-girl/
echo People::$FAMILY_MAN_WOMEN_GIRL[0]; //0x1F468
echo "<br>";

?>

String

<?php 

include("string/People.php");

//https://www.emojibase.com/emoji/1f600/grinningface
echo People::GRINNING_FACE; //😀
echo "<br>";

//https://www.emojibase.com/emoji/263a/whitesmilingface
echo People::WHITE_SMILING_FACE; //☺
echo "<br>";

//http://emojipedia.org/person-raising-both-hands-in-celebration-emoji-modifier-fitzpatrick-type-1-2/
echo People::PERSON_BOTH_HAND_CELEBRATION_TYPE_1_2; //Ã🙌ðŸ�»
echo "<br>";

//http://emojipedia.org/family-man-woman-girl/
echo People::FAMILY_MAN_WOMEN_GIRL; //👨�👩�👧
echo "<br>";

?>

Emoji Code Sheet

###Languages Usage

Clone this wiki locally