Created
August 6, 2013 23:01
-
-
Save iamcal/6169622 to your computer and use it in GitHub Desktop.
Using Emoji with ApnsPHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'ApnsPHP/Autoload.php'; | |
$message = new ApnsPHP_Message('1234567890123456789012345678901234567890123456789012345678901234'); | |
$message->setText("Hello \\uD83D\\uDCC5"); | |
print_r($message->getPayload()); | |
echo "\n"; | |
Expected output: | |
{"aps":{"alert":"Hello \\uD83D\\uDCC5"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment