There's a quick 'n dirty way to do this using html_entity_decode()
:
Example:
$lightning = html_entity_decode('',ENT_NOQUOTES,'UTF-8');
//add this to the 'alert' portion of your APNS payload:
$message = "You just got the {$lightning}SHOCKER{$lightning}!";
Basically, you just create an HTML Entity with the decimal (not hex) code of the Emoji icon you'd like to use, and html_entity_decode()
will convert it to the correct Unicode character that you can use in a string. There's a catalog of Unicode code points at the previously-mentioned http://code.iamcal.com/php/emoji/ URL.
This method should work for any character you can't type into your text editor, emoji or not.