" /> " /> Regional indicators and emoji flags in unicode
= ord("A")) $regind = $asc - ord("A") + 0xE0061; else $regind = $asc - ord("0") + 0xE0030; if(0) { $regind = chr($regind); return $regind; } else if (0) { return "&#" . ($regind) . ";"; } else { return html_entity_decode("&#$regind;"); } } function extendedflag($flag) { $v = html_entity_decode("&#" . (0x1F3F4) . ";"); // waving black flag for($i = 0; $i < strlen($flag); $i++) { $v .= asc2latintag(ord($flag[$i])); } $v .= html_entity_decode("&#" . (0xE007F) . ";"); // cancel tag return $v; } function asc2regind($asc) { $regind = $asc - ord("A") + 0x1F1E6; if(0) { $regind = chr($regind); return $regind; } else if (0) { return "&#" . ($regind) . ";"; } else { return html_entity_decode("&#$regind;"); } } $flags = array("GBENG", "GBSCT", "GBWLS", "HR01"); echo "
\n"; foreach ($flags as $f) { echo "
$f
\n"; echo "
" . extendedflag($f) . "
\n"; } echo "
"; echo "
"; for($i = ord("A"); $i <= ord("Z"); $i++) { for($j = ord("A"); $j <= ord("Z"); $j++) { echo "
" . chr($i) . chr($j) . "
\n"; echo "
" . asc2regind($i) . asc2regind($j) . "
\n"; } } echo "
"; ?>
source
ivan vučica 2013