Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function base64_decode_apns_token($token) {
- $a = unpack("H*hex", base64_decode($token));
- $b = str_split($a["hex"], 8);
- $output = "";
- foreach ($b as $current) {
- $output .= "$current";
- }
- return trim($output);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement