{"id":14762,"date":"2021-09-14T10:58:12","date_gmt":"2021-09-14T10:58:12","guid":{"rendered":"https:\/\/freehost.page\/?p=14762"},"modified":"2021-09-14T10:58:12","modified_gmt":"2021-09-14T10:58:12","slug":"php-vietnamese-hex-converter","status":"publish","type":"post","link":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/","title":{"rendered":"C\u00e1c h\u00e0m PHP chuy\u1ec3n \u0111\u1ed5i k\u00fd t\u1ef1 ti\u1ebfng Vi\u1ec7t t\u1eeb d\u1ea1ng m\u00e3 hex \u00edt ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng ph\u1ed5 bi\u1ebfn v\u00e0 ng\u01b0\u1ee3c l\u1ea1i (v1.2)"},"content":{"rendered":"\n
B\u1ea3n n\u00e0y t\u00f4i c\u1eadp nh\u1eadt th\u00eam vi\u1ec7c chuy\u1ec3n \u0111\u1ed5i c\u1ea3 k\u00fd t\u1ef1 vi\u1ebft hoa n\u1eefa.<\/p>\n\n\n\n
B\u1ed1n h\u00e0m bao g\u1ed3m:<\/p>\n\n\n\n
pop_hex_convert($str)<\/code>: chuy\u1ec3n chu\u1ed7i ti\u1ebfng Vi\u1ec7t \u1edf d\u1ea1ng m\u00e3 h\u00f3a hex kh\u00f4ng ph\u1ed5 bi\u1ebfn sang d\u1ea1ng ph\u1ed5 bi\u1ebfn, chuy\u1ec3n n\u00f3 th\u00e0nh chu\u1ed7i k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng. \u0110\u1ea7u v\u00e0o c\u00f3 th\u1ec3 l\u00e0 chu\u1ed7i vi\u1ebft hoa, vi\u1ebft th\u01b0\u1eddng hay c\u1ea3 hai, \u0111\u1ea7u ra ch\u1ec9 bao g\u1ed3m c\u00e1c k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng;<\/li>rarely_hex_convert($str)<\/code>: chuy\u1ec3n chu\u1ed7i ti\u1ebfng Vi\u1ec7t \u1edf d\u1ea1ng m\u00e3 h\u00f3a hex ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng kh\u00f4ng ph\u1ed5 bi\u1ebfn, chuy\u1ec3n n\u00f3 th\u00e0nh chu\u1ed7i k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng. \u0110\u1ea7u v\u00e0o c\u00f3 th\u1ec3 l\u00e0 chu\u1ed7i vi\u1ebft hoa, vi\u1ebft th\u01b0\u1eddng hay c\u1ea3 hai, \u0111\u1ea7u ra ch\u1ec9 bao g\u1ed3m c\u00e1c k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng. N\u00f3 ng\u01b0\u1ee3c v\u1edbi h\u00e0m pop_hex_convert($str)<\/code>;<\/li>pop_hex_upp_convert($str)<\/code>: chuy\u1ec3n chu\u1ed7i ti\u1ebfng Vi\u1ec7t \u1edf d\u1ea1ng m\u00e3 h\u00f3a hex kh\u00f4ng ph\u1ed5 bi\u1ebfn sang d\u1ea1ng ph\u1ed5 bi\u1ebfn, ch\u1ec9 chuy\u1ec3n c\u00e1c k\u00fd t\u1ef1 vi\u1ebft HOA, c\u00e1c k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng gi\u1eef nguy\u00ean m\u00e3 hex ban \u0111\u1ea7u c\u1ee7a n\u00f3;<\/li>rarely_hex_upp_convert($str)<\/code>: chuy\u1ec3n t\u1eeb ti\u1ebfng Vi\u1ec7t \u1edf d\u1ea1ng m\u00e3 h\u00f3a hex ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng kh\u00f4ng ph\u1ed5 bi\u1ebfn, ch\u1ec9 chuy\u1ec3n c\u00e1c k\u00fd t\u1ef1 vi\u1ebft HOA. c\u00e1c k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng gi\u1eef nguy\u00ean m\u00e3 hex ban \u0111\u1ea7u c\u1ee7a n\u00f3. N\u00f3 ng\u01b0\u1ee3c v\u1edbi h\u00e0m pop_hex_upp_convert($str)<\/code>;<\/li><\/ul>\n\n\n\nM\u1ea5y h\u00e0m n\u00e0y t\u01b0\u01a1ng \u0111\u1ed1i h\u1eefu \u00edch khi ch\u00fang ta mu\u1ed1n thao t\u00e1c v\u1edbi t\u1eeb ti\u1ebfng Vi\u1ec7t \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a theo nhi\u1ec1u ki\u1ec3u kh\u00e1c nhau. Chuy\u1ec3n v\u1ec1 th\u1ed1ng nh\u1ea5t m\u1ed9t d\u1ea1ng (d\u00f9 l\u00e0 d\u1ea1ng ph\u1ed5 bi\u1ebfn hay kh\u00f4ng ph\u1ed5 bi\u1ebfn) s\u1ebd gi\u00fap ch\u00fang ta x\u1eed l\u00fd ch\u00ednh x\u00e1c h\u01a1n.<\/p>\n\n\n\n
M\u1ed9t l\u1ee3i \u00edch kh\u00e1c c\u00f3 th\u1ec3 \u0111\u00e1ng quan t\u00e2m l\u00e0 v\u1edbi 2 h\u00e0m rarely_hex_convert($str)<\/span> v\u00e0 rarely_hex_upp_convert($str)<\/code> k\u1ebft h\u1ee3p v\u1edbi h\u00e0m bin2hex<\/code> c\u00f3 s\u1eb5n c\u1ee7a PHP ta c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng l\u1ea5y \u0111\u01b0\u1ee3c d\u1ea5u c\u1ee7a t\u1eeb. Ngo\u00e0i ra l\u00e0 h\u00e0m hex2bin<\/code> \u0111\u1ec3 chuy\u1ec3n ng\u01b0\u1ee3c m\u00e3 hex v\u00e0 t\u1eeb c\u1ee5 th\u1ec3.<\/p>\n\n\n\nC\u00e1c m\u00e3 hex c\u00f3 d\u1ea5u: $timbre = array(\"cc80\",\"cc81\",\"cc83\",\"cc89\",\"cca3\"); \/\/ c\u00e1c m\u00e3 hex c\u00f3 d\u1ea5u<\/code><\/p>\n\n\n\nC\u00e1c function trong file d\u01b0\u1edbi \u0111\u00e2y l\u00e0 \u0111\u1ed9c l\u1eadp, n\u00f3 kh\u00f4ng c\u1ea7n require \u0111\u1ebfn file .php kh\u00e1c \u0111\u1ec3 ho\u1ea1t \u0111\u1ed9ng.<\/p>\n\n\n\n
<?php\n\/* \n * Vietnamese characters hex converter v1.2\n * MIT License\n * Nguyen Duc Anh - freehost.page\n *\/\n\n\nfunction pop_hex_convert($strx) { \/\/ chuy\u1ec3n t\u1eeb m\u00e3 h\u00f3a hex \u00edt ph\u1ed5 bi\u1ebfn sang m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn h\u01a1n d\u00e0nh cho k\u00fd t\u1ef1 th\u01b0\u1eddng\n$str2 = trim($strx, ' '); \/\/ b\u1ecf kho\u1ea3ng tr\u1eafng tr\u01b0\u1edbc v\u00e0 sau chu\u1ed7i\n$str3 = preg_replace('\/\\s+\/', ' ', $str2); \/\/ lo\u1ea1i b\u1ecf kho\u1ea3ng tr\u1eafng th\u1eeba trong chu\u1ed7i, ch\u1ec9 gi\u1eef l\u1ea1i m\u1ed9t kho\u1ea3ng tr\u1eafng gi\u1eefa c\u00e1c t\u1eeb\n$str = mb_strtolower($str3,'UTF-8'); \/\/ chuy\u1ec3n t\u1ea5t c\u1ea3 th\u00e0nh k\u00fd t\u1ef1 th\u01b0\u1eddng\n\n$phothong = array(); \/\/ t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn\n$itdung = array(); \/\/t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a \u00edt d\u00f9ng\n\n\/\/ V\u1ea7n y\n\n$phothong[0]='\u1ef5'; $itdung[0]='y\u0323';\n\n\/\/ V\u1ea7n a th\u01b0\u1eddng xong\n\n$phothong[1]='\u00e1'; $itdung[1]='a\u0301'; \n\n$phothong[2]='\u00e0'; $itdung[2]='a\u0300';\n\n$phothong[3]='\u1ea3'; $itdung[3]='a\u0309';\n\n$phothong[4]='\u00e3'; $itdung[4]='a\u0303';\n\n$phothong[5]='\u1ea1'; $itdung[5]='a\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u0103 th\u01b0\u1eddng xong\n\n$phothong[6]='\u1eaf'; $itdung[6]='\u0103\u0301';\n\n$phothong[7]='\u1eb1'; $itdung[7]='\u0103\u0300';\n\n$phothong[8]='\u1eb3'; $itdung[8]='\u0103\u0309';\n\n$phothong[9]='\u1eb5'; $itdung[9]='\u0103\u0303';\n\n$phothong[10]='\u1eb7'; $itdung[10]='\u0103\u0323';\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00e2 th\u01b0\u1eddng xong\n\n$phothong[11]='\u1ea5'; $itdung[12]='\u00e2\u0301';\n\n$phothong[12]='\u1ea7'; $itdung[11]='\u00e2\u0300';\n\n$phothong[13]='\u1ead'; $itdung[13]='\u00e2\u0323';\n\n$phothong[14]='\u1ea9'; $itdung[14]='\u00e2\u0309';\n\n$phothong[15]='\u1eab'; $itdung[15]='\u00e2\u0303';\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n e th\u01b0\u1eddng xong\n\n$phothong[16]='\u00e9'; $itdung[16]='e\u0301';\n\n$phothong[17]='\u00e8'; $itdung[17]='e\u0300';\n\n$phothong[18]='\u1ebb'; $itdung[18]='e\u0309';\n\n$phothong[19]='\u1ebd'; $itdung[19]='e\u0303';\n\n$phothong[20]='\u1eb9'; $itdung[20]='e\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00ea th\u01b0\u1eddng xong\n\n$phothong[21]='\u1ebf'; $itdung[21]='\u00ea\u0301';\n\n$phothong[22]='\u1ec1'; $itdung[22]='\u00ea\u0300';\n\n$phothong[23]='\u1ec3'; $itdung[23]='\u00ea\u0309';\n\n$phothong[24]='\u1ec5'; $itdung[24]='\u00ea\u0303';\n\n$phothong[25]='\u1ec7'; $itdung[25]='\u00ea\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n o th\u01b0\u1eddng xong\n\n$phothong[26]='\u00f3'; $itdung[26]='o\u0301';\n\n$phothong[27]='\u00f2'; $itdung[27]='o\u0300';\n\n$phothong[28]='\u1ecf'; $itdung[28]='o\u0309';\n\n$phothong[29]='\u00f5'; $itdung[29]='o\u0303';\n\n$phothong[30]='\u1ecd'; $itdung[30]='o\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00f4 th\u01b0\u1eddng xong\n\n$phothong[31]='\u1ed1'; $itdung[31]='\u00f4\u0301';\n\n$phothong[32]='\u1ed3'; $itdung[32]='\u00f4\u0300';\n\n$phothong[33]='\u1ed5'; $itdung[33]='\u00f4\u0309';\n\n$phothong[34]='\u1ed7'; $itdung[34]='\u00f4\u0303';\n\n$phothong[35]='\u1ed9'; $itdung[35]='\u00f4\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01a1 th\u01b0\u1eddng xong\n\n$phothong[36]='\u1edb'; $itdung[36]='\u01a1\u0301';\n\n$phothong[37]='\u1edd'; $itdung[37]='\u01a1\u0300';\n\n$phothong[38]='\u1edf'; $itdung[38]='\u01a1\u0309';\n\n$phothong[39]='\u1ee1'; $itdung[39]='\u01a1\u0303';\n\n$phothong[40]='\u1ee3'; $itdung[40]='\u01a1\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n i th\u01b0\u1eddng xong\n\n$phothong[41]='\u00ed'; $itdung[41]='i\u0301';\n\n$phothong[42]='\u00ec'; $itdung[42]='i\u0300';\n\n$phothong[43]='\u1ec9'; $itdung[43]='i\u0309';\n\n$phothong[44]='\u0129'; $itdung[44]='i\u0303';\n\n$phothong[45]='\u1ecb'; $itdung[45]='i\u0323';\n\n\/\/ \/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n u th\u01b0\u1eddng xong\n\n$phothong[46]='\u00fa'; $itdung[46]='u\u0301';\n\n$phothong[47]='\u00f9'; $itdung[47]='u\u0300';\n\n$phothong[48]='\u1ee7'; $itdung[48]='u\u0309';\n\n$phothong[49]='\u0169'; $itdung[49]='u\u0303';\n\n$phothong[50]='\u1ee5'; $itdung[50]='u\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01b0 th\u01b0\u1eddng xong\n\n$phothong[51]='\u1ee9'; $itdung[51]='\u01b0\u0301';\n\n$phothong[52]='\u1eeb'; $itdung[52]='\u01b0\u0300';\n\n$phothong[53]='\u1eed'; $itdung[53]='\u01b0\u0309';\n\n$phothong[54]='\u1eef'; $itdung[54]='\u01b0\u0303';\n\n$phothong[55]='\u1ef1'; $itdung[55]='\u01b0\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n y th\u01b0\u1eddng xong\n\n$phothong[56]='\u00fd'; $itdung[56]='y\u0301';\n\n$phothong[57]='\u1ef3'; $itdung[57]='y\u0300';\n\n$phothong[58]='\u1ef7'; $itdung[58]='y\u0309';\n\n$phothong[59]='\u1ef9'; $itdung[59]='y\u0303';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n for ($j=0; $j<60; $j++) { \/\/ ch\u1ea1y v\u00f2ng l\u1eb7p \u0111\u1ec3 chuy\u1ec3n k\u00fd t\u1ef1\n $pattern = '\/'.$itdung[$j].'\/';\n $str = preg_replace($pattern, $phothong[$j], $str);\n }\n \nreturn $str;\n}\n\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\nfunction rarely_hex_convert($strx) { \/\/ chuy\u1ec3n m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng kh\u00f4ng ph\u1ed5 bi\u1ebfn, d\u00e0nh cho k\u00fd t\u1ef1 th\u01b0\u1eddng\n$str2 = trim($strx, ' '); \/\/ b\u1ecf kho\u1ea3ng tr\u1eafng tr\u01b0\u1edbc v\u00e0 sau chu\u1ed7i\n$str3 = preg_replace('\/\\s+\/', ' ', $str2); \/\/ lo\u1ea1i b\u1ecf kho\u1ea3ng tr\u1eafng th\u1eeba trong chu\u1ed7i\n$str = mb_strtolower($str3,'UTF-8'); \/\/ chuy\u1ec3n th\u00e0nh k\u00fd t\u1ef1 th\u01b0\u1eddng\n\n$phothong = array(); \/\/ t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn\n$itdung = array(); \/\/t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a \u00edt d\u00f9ng\n\n\/\/ V\u1ea7n y\n\n$phothong[0]='\u1ef5'; $itdung[0]='y\u0323';\n\n\/\/ V\u1ea7n a th\u01b0\u1eddng xong\n\n$phothong[1]='\u00e1'; $itdung[1]='a\u0301';\n\n$phothong[2]='\u00e0'; $itdung[2]='a\u0300';\n\n$phothong[3]='\u1ea3'; $itdung[3]='a\u0309';\n\n$phothong[4]='\u00e3'; $itdung[4]='a\u0303';\n\n$phothong[5]='\u1ea1'; $itdung[5]='a\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u0103 th\u01b0\u1eddng xong\n\n$phothong[6]='\u1eaf'; $itdung[6]='\u0103\u0301';\n\n$phothong[7]='\u1eb1'; $itdung[7]='\u0103\u0300';\n\n$phothong[8]='\u1eb3'; $itdung[8]='\u0103\u0309';\n\n$phothong[9]='\u1eb5'; $itdung[9]='\u0103\u0303';\n\n$phothong[10]='\u1eb7'; $itdung[10]='\u0103\u0323';\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00e2 th\u01b0\u1eddng xong\n\n$phothong[11]='\u1ea5'; $itdung[12]='\u00e2\u0301';\n\n$phothong[12]='\u1ea7'; $itdung[11]='\u00e2\u0300';\n\n$phothong[13]='\u1ead'; $itdung[13]='\u00e2\u0323';\n\n$phothong[14]='\u1ea9'; $itdung[14]='\u00e2\u0309';\n\n$phothong[15]='\u1eab'; $itdung[15]='\u00e2\u0303';\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n e th\u01b0\u1eddng xong\n\n$phothong[16]='\u00e9'; $itdung[16]='e\u0301';\n\n$phothong[17]='\u00e8'; $itdung[17]='e\u0300';\n\n$phothong[18]='\u1ebb'; $itdung[18]='e\u0309';\n\n$phothong[19]='\u1ebd'; $itdung[19]='e\u0303';\n\n$phothong[20]='\u1eb9'; $itdung[20]='e\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00ea th\u01b0\u1eddng xong\n\n$phothong[21]='\u1ebf'; $itdung[21]='\u00ea\u0301';\n\n$phothong[22]='\u1ec1'; $itdung[22]='\u00ea\u0300';\n\n$phothong[23]='\u1ec3'; $itdung[23]='\u00ea\u0309';\n\n$phothong[24]='\u1ec5'; $itdung[24]='\u00ea\u0303';\n\n$phothong[25]='\u1ec7'; $itdung[25]='\u00ea\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n o th\u01b0\u1eddng xong\n\n$phothong[26]='\u00f3'; $itdung[26]='o\u0301';\n\n$phothong[27]='\u00f2'; $itdung[27]='o\u0300';\n\n$phothong[28]='\u1ecf'; $itdung[28]='o\u0309';\n\n$phothong[29]='\u00f5'; $itdung[29]='o\u0303';\n\n$phothong[30]='\u1ecd'; $itdung[30]='o\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00f4 th\u01b0\u1eddng xong\n\n$phothong[31]='\u1ed1'; $itdung[31]='\u00f4\u0301';\n\n$phothong[32]='\u1ed3'; $itdung[32]='\u00f4\u0300';\n\n$phothong[33]='\u1ed5'; $itdung[33]='\u00f4\u0309';\n\n$phothong[34]='\u1ed7'; $itdung[34]='\u00f4\u0303';\n\n$phothong[35]='\u1ed9'; $itdung[35]='\u00f4\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01a1 th\u01b0\u1eddng xong\n\n$phothong[36]='\u1edb'; $itdung[36]='\u01a1\u0301';\n\n$phothong[37]='\u1edd'; $itdung[37]='\u01a1\u0300';\n\n$phothong[38]='\u1edf'; $itdung[38]='\u01a1\u0309';\n\n$phothong[39]='\u1ee1'; $itdung[39]='\u01a1\u0303';\n\n$phothong[40]='\u1ee3'; $itdung[40]='\u01a1\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n i th\u01b0\u1eddng xong\n\n$phothong[41]='\u00ed'; $itdung[41]='i\u0301';\n\n$phothong[42]='\u00ec'; $itdung[42]='i\u0300';\n\n$phothong[43]='\u1ec9'; $itdung[43]='i\u0309';\n\n$phothong[44]='\u0129'; $itdung[44]='i\u0303';\n\n$phothong[45]='\u1ecb'; $itdung[45]='i\u0323';\n\n\/\/ \/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n u th\u01b0\u1eddng xong\n\n$phothong[46]='\u00fa'; $itdung[46]='u\u0301';\n\n$phothong[47]='\u00f9'; $itdung[47]='u\u0300';\n\n$phothong[48]='\u1ee7'; $itdung[48]='u\u0309';\n\n$phothong[49]='\u0169'; $itdung[49]='u\u0303';\n\n$phothong[50]='\u1ee5'; $itdung[50]='u\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01b0 th\u01b0\u1eddng xong\n\n$phothong[51]='\u1ee9'; $itdung[51]='\u01b0\u0301';\n\n$phothong[52]='\u1eeb'; $itdung[52]='\u01b0\u0300';\n\n$phothong[53]='\u1eed'; $itdung[53]='\u01b0\u0309';\n\n$phothong[54]='\u1eef'; $itdung[54]='\u01b0\u0303';\n\n$phothong[55]='\u1ef1'; $itdung[55]='\u01b0\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n y th\u01b0\u1eddng xong\n\n$phothong[56]='\u00fd'; $itdung[56]='y\u0301';\n\n$phothong[57]='\u1ef3'; $itdung[57]='y\u0300';\n\n$phothong[58]='\u1ef7'; $itdung[58]='y\u0309';\n\n$phothong[59]='\u1ef9'; $itdung[59]='y\u0303';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n for ($j=0; $j<60; $j++) { \/\/ ti\u1ebfn h\u00e0nh ch\u1ea1y v\u00f2ng l\u1eb7p \u0111\u1ec3 th\u1ef1c hi\u1ec7n chuy\u1ec3n \u0111\u1ed5i\n $pattern = '\/'.$phothong[$j].'\/';\n $str = preg_replace($pattern, $itdung[$j], $str);\n }\n \nreturn $str;\n}\n\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\nfunction pop_hex_upp_convert($strx) { \/\/ chuy\u1ec3n t\u1eeb m\u00e3 h\u00f3a \u00edt ph\u1ed5 bi\u1ebfn sang m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn h\u01a1n d\u00e0nh cho t\u1eeb c\u00f3 k\u00fd t\u1ef1 VI\u1ebeT HOA\n\n$str2 = trim($strx, ' '); \/\/ b\u1ecf kho\u1ea3ng tr\u1eafng tr\u01b0\u1edbc v\u00e0 sau chu\u1ed7i\n$str = preg_replace('\/\\s+\/', ' ', $str2); \/\/ lo\u1ea1i b\u1ecf kho\u1ea3ng tr\u1eafng th\u1eeba trong chu\u1ed7i\n \n$phothong = array(); \/\/ t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn\n$itdung = array(); \/\/t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a \u00edt d\u00f9ng\n\n\/\/ V\u1ea7n Y\n\n$phothong[0]='\u1ef4'; $itdung[0]='Y\u0323';\n\n\/\/ V\u1ea7n A xong\n\n$phothong[1]='\u00c1'; $itdung[1]='A\u0301';\n\n$phothong[2]='\u00c0'; $itdung[2]='A\u0300';\n\n$phothong[3]='\u1ea2'; $itdung[3]='A\u0309';\n\n$phothong[4]='\u00c3'; $itdung[4]='A\u0303';\n\n$phothong[5]='\u1ea0'; $itdung[5]='A\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ \/\/\/ V\u1ea7n \u0102 xong\n\n$phothong[6]='\u1eae'; $itdung[6]='\u0102\u0301';\n\n$phothong[7]='\u1eb0'; $itdung[7]='\u0102\u0300';\n\n$phothong[8]='\u1eb2'; $itdung[8]='\u0102\u0309';\n\n$phothong[9]='\u1eb4'; $itdung[9]='\u0102\u0303';\n\n$phothong[10]='\u1eb6'; $itdung[10]='\u0102\u0323';\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00c2 xong\n\n$phothong[11]='\u1ea4'; $itdung[12]='\u00c2\u0301';\n\n$phothong[12]='\u1ea6'; $itdung[11]='\u00c2\u0300';\n\n$phothong[13]='\u1eac'; $itdung[13]='\u00c2\u0323';\n\n$phothong[14]='\u1ea8'; $itdung[14]='\u00c2\u0309';\n\n$phothong[15]='\u1eaa'; $itdung[15]='\u00c2\u0303';\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n E xong\n\n$phothong[16]='\u00c9'; $itdung[16]='E\u0301';\n\n$phothong[17]='\u00c8'; $itdung[17]='E\u0300';\n\n$phothong[18]='\u1eba'; $itdung[18]='E\u0309';\n\n$phothong[19]='\u1ebc'; $itdung[19]='E\u0303';\n\n$phothong[20]='\u1eb8'; $itdung[20]='E\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00ca xong\n\n$phothong[21]='\u1ebe'; $itdung[21]='\u00ca\u0301';\n\n$phothong[22]='\u1ec0'; $itdung[22]='\u00ca\u0300';\n\n$phothong[23]='\u1ec2'; $itdung[23]='\u00ca\u0309';\n\n$phothong[24]='\u1ec4'; $itdung[24]='\u00ca\u0303';\n\n$phothong[25]='\u1ec6'; $itdung[25]='\u00ca\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n O xong\n\n$phothong[26]='\u00d3'; $itdung[26]='O\u0301';\n\n$phothong[27]='\u00d2'; $itdung[27]='O\u0300';\n\n$phothong[28]='\u1ece'; $itdung[28]='O\u0309';\n\n$phothong[29]='\u00d5'; $itdung[29]='O\u0303';\n\n$phothong[30]='\u1ecc'; $itdung[30]='O\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00d4 xong\n\n$phothong[31]='\u1ed0'; $itdung[31]='\u00d4\u0301';\n\n$phothong[32]='\u1ed2'; $itdung[32]='\u00d4\u0300';\n\n$phothong[33]='\u1ed4'; $itdung[33]='\u00d4\u0309';\n\n$phothong[34]='\u1ed6'; $itdung[34]='\u00d4\u0303';\n\n$phothong[35]='\u1ed8'; $itdung[35]='\u00d4\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01a0 xong\n\n$phothong[36]='\u1eda'; $itdung[36]='\u01a0\u0301';\n\n$phothong[37]='\u1edc'; $itdung[37]='\u01a0\u0300';\n\n$phothong[38]='\u1ede'; $itdung[38]='\u01a0\u0309';\n\n$phothong[39]='\u1ee0'; $itdung[39]='\u01a0\u0303';\n\n$phothong[40]='\u1ee2'; $itdung[40]='\u01a0\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n I xong\n\n$phothong[41]='\u00cd'; $itdung[41]='I\u0301';\n\n$phothong[42]='\u00cc'; $itdung[42]='I\u0300';\n\n$phothong[43]='\u1ec8'; $itdung[43]='I\u0309';\n\n$phothong[44]='\u0128'; $itdung[44]='I\u0303';\n\n$phothong[45]='\u1eca'; $itdung[45]='I\u0323';\n\n\/\/ \/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n U xong\n\n$phothong[46]='\u00da'; $itdung[46]='U\u0301';\n\n$phothong[47]='\u00d9'; $itdung[47]='U\u0300';\n\n$phothong[48]='\u1ee6'; $itdung[48]='U\u0309';\n\n$phothong[49]='\u0168'; $itdung[49]='U\u0303';\n\n$phothong[50]='\u1ee4'; $itdung[50]='U\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ \/\/ V\u1ea7n \u01af xong\n\n$phothong[51]='\u1ee8'; $itdung[51]='\u01af\u0301';\n\n$phothong[52]='\u1eea'; $itdung[52]='\u01af\u0300';\n\n$phothong[53]='\u1eec'; $itdung[53]='\u01af\u0309';\n\n$phothong[54]='\u1eee'; $itdung[54]='\u01af\u0303';\n\n$phothong[55]='\u1ef0'; $itdung[55]='\u01af\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n Y xong\n\n$phothong[56]='\u00dd'; $itdung[56]='Y\u0301';\n\n$phothong[57]='\u1ef2'; $itdung[57]='Y\u0300';\n\n$phothong[58]='\u1ef6'; $itdung[58]='Y\u0309';\n\n$phothong[59]='\u1ef8'; $itdung[59]='Y\u0303';\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n for ($j=0; $j<60; $j++) { \/\/ th\u1ef1c hi\u1ec7n ch\u1ea1y v\u00f2ng l\u1eb7p \u0111\u1ec3 \u0111\u1ed5i\n $pattern = '\/'.$itdung[$j].'\/';\n $str = preg_replace($pattern, $phothong[$j], $str);\n }\n \nreturn $str; \/\/ tr\u1ea3 k\u1ebft qu\u1ea3 v\u1ec1\n}\n\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\nfunction rarely_hex_upp_convert($strx) { \/\/ chuy\u1ec3n t\u1eeb m\u00e3 h\u00f3a ph\u1ed5 th\u00f4ng sang \u00edt d\u00f9ng d\u00e0nh cho t\u1eeb c\u00f3 k\u00fd t\u1ef1 VI\u1ebeT HOA\n\n$str2 = trim($strx, ' '); \/\/ b\u1ecf kho\u1ea3ng tr\u1eafng tr\u01b0\u1edbc v\u00e0 sau chu\u1ed7i\n$str = preg_replace('\/\\s+\/', ' ', $str2); \/\/ lo\u1ea1i b\u1ecf kho\u1ea3ng tr\u1eafng th\u1eeba trong chu\u1ed7i\n \n$phothong = array(); \/\/ t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a ph\u1ed5 bi\u1ebfn\n$itdung = array(); \/\/t\u1ea1o m\u1ea3ng ch\u1eef c\u00e1i m\u00e3 h\u00f3a \u00edt d\u00f9ng\n\n\/\/ V\u1ea7n Y\n\n$phothong[0]='\u1ef4'; $itdung[0]='Y\u0323';\n\n\/\/ V\u1ea7n A xong\n\n$phothong[1]='\u00c1'; $itdung[1]='A\u0301';\n\n$phothong[2]='\u00c0'; $itdung[2]='A\u0300';\n\n$phothong[3]='\u1ea2'; $itdung[3]='A\u0309';\n\n$phothong[4]='\u00c3'; $itdung[4]='A\u0303';\n\n$phothong[5]='\u1ea0'; $itdung[5]='A\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ \/\/\/ V\u1ea7n \u0102 xong\n\n$phothong[6]='\u1eae'; $itdung[6]='\u0102\u0301';\n\n$phothong[7]='\u1eb0'; $itdung[7]='\u0102\u0300';\n\n$phothong[8]='\u1eb2'; $itdung[8]='\u0102\u0309';\n\n$phothong[9]='\u1eb4'; $itdung[9]='\u0102\u0303';\n\n$phothong[10]='\u1eb6'; $itdung[10]='\u0102\u0323';\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00c2 xong\n\n$phothong[11]='\u1ea4'; $itdung[12]='\u00c2\u0301';\n\n$phothong[12]='\u1ea6'; $itdung[11]='\u00c2\u0300';\n\n$phothong[13]='\u1eac'; $itdung[13]='\u00c2\u0323';\n\n$phothong[14]='\u1ea8'; $itdung[14]='\u00c2\u0309';\n\n$phothong[15]='\u1eaa'; $itdung[15]='\u00c2\u0303';\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n E xong\n\n$phothong[16]='\u00c9'; $itdung[16]='E\u0301';\n\n$phothong[17]='\u00c8'; $itdung[17]='E\u0300';\n\n$phothong[18]='\u1eba'; $itdung[18]='E\u0309';\n\n$phothong[19]='\u1ebc'; $itdung[19]='E\u0303';\n\n$phothong[20]='\u1eb8'; $itdung[20]='E\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00ca xong\n\n$phothong[21]='\u1ebe'; $itdung[21]='\u00ca\u0301';\n\n$phothong[22]='\u1ec0'; $itdung[22]='\u00ca\u0300';\n\n$phothong[23]='\u1ec2'; $itdung[23]='\u00ca\u0309';\n\n$phothong[24]='\u1ec4'; $itdung[24]='\u00ca\u0303';\n\n$phothong[25]='\u1ec6'; $itdung[25]='\u00ca\u0323';\n\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n O xong\n\n$phothong[26]='\u00d3'; $itdung[26]='O\u0301';\n\n$phothong[27]='\u00d2'; $itdung[27]='O\u0300';\n\n$phothong[28]='\u1ece'; $itdung[28]='O\u0309';\n\n$phothong[29]='\u00d5'; $itdung[29]='O\u0303';\n\n$phothong[30]='\u1ecc'; $itdung[30]='O\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u00d4 xong\n\n$phothong[31]='\u1ed0'; $itdung[31]='\u00d4\u0301';\n\n$phothong[32]='\u1ed2'; $itdung[32]='\u00d4\u0300';\n\n$phothong[33]='\u1ed4'; $itdung[33]='\u00d4\u0309';\n\n$phothong[34]='\u1ed6'; $itdung[34]='\u00d4\u0303';\n\n$phothong[35]='\u1ed8'; $itdung[35]='\u00d4\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01a0 xong\n\n$phothong[36]='\u1eda'; $itdung[36]='\u01a0\u0301';\n\n$phothong[37]='\u1edc'; $itdung[37]='\u01a0\u0300';\n\n$phothong[38]='\u1ede'; $itdung[38]='\u01a0\u0309';\n\n$phothong[39]='\u1ee0'; $itdung[39]='\u01a0\u0303';\n\n$phothong[40]='\u1ee2'; $itdung[40]='\u01a0\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n I xong\n\n$phothong[41]='\u00cd'; $itdung[41]='I\u0301';\n\n$phothong[42]='\u00cc'; $itdung[42]='I\u0300';\n\n$phothong[43]='\u1ec8'; $itdung[43]='I\u0309';\n\n$phothong[44]='\u0128'; $itdung[44]='I\u0303';\n\n$phothong[45]='\u1eca'; $itdung[45]='I\u0323';\n\n\/\/ \/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n U xong\n\n$phothong[46]='\u00da'; $itdung[46]='U\u0301';\n\n$phothong[47]='\u00d9'; $itdung[47]='U\u0300';\n\n$phothong[48]='\u1ee6'; $itdung[48]='U\u0309';\n\n$phothong[49]='\u0168'; $itdung[49]='U\u0303';\n\n$phothong[50]='\u1ee4'; $itdung[50]='U\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n \u01af xong\n\n$phothong[51]='\u1ee8'; $itdung[51]='\u01af\u0301';\n\n$phothong[52]='\u1eea'; $itdung[52]='\u01af\u0300';\n\n$phothong[53]='\u1eec'; $itdung[53]='\u01af\u0309';\n\n$phothong[54]='\u1eee'; $itdung[54]='\u01af\u0303';\n\n$phothong[55]='\u1ef0'; $itdung[55]='\u01af\u0323';\n\n\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/\/ V\u1ea7n Y xong\n\n$phothong[56]='\u00dd'; $itdung[56]='Y\u0301';\n\n$phothong[57]='\u1ef2'; $itdung[57]='Y\u0300';\n\n$phothong[58]='\u1ef6'; $itdung[58]='Y\u0309';\n\n$phothong[59]='\u1ef8'; $itdung[59]='Y\u0303';\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n for ($j=0; $j<60; $j++) { \/\/ th\u1ef1c hi\u1ec7n ch\u1ea1y v\u00f2ng l\u1eb7p \u0111\u1ec3 \u0111\u1ed5i\n $pattern = '\/'.$phothong[$j].'\/';\n $str = preg_replace($pattern, $itdung[$j], $str);\n }\n \nreturn $str; \/\/ tr\u1ea3 k\u1ebft qu\u1ea3 v\u1ec1\n}\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ End code\n<\/code><\/pre>\n\n\n\n
\n\n\n\nV\u00ed d\u1ee5:<\/p>\n\n\n\n
$str = \"Nguy\u1ec5n \u0110\u1ee9c \u00c1nh\";\necho pop_hex_convert($str).': '.bin2hex(pop_hex_convert($str)).\"<br>\";\necho rarely_hex_convert($str).': '.bin2hex(rarely_hex_convert($str)).\"<br>\";\necho pop_hex_upp_convert($str).': '.bin2hex(pop_hex_upp_convert($str)).\"<br>\";\necho rarely_hex_upp_convert($str).': '.bin2hex(rarely_hex_upp_convert($str)).\"<br>\";<\/code><\/pre>\n\n\n\nK\u1ebft qu\u1ea3:<\/p>\n\n\n\n
nguy\u1ec5n \u0111\u1ee9c \u00e1nh: 6e677579e1bb856e20c491e1bba96320c3a16e68\nnguy\u00ea\u0303n \u0111\u01b0\u0301c a\u0301nh: 6e677579c3aacc836e20c491c6b0cc81632061cc816e68\nNguy\u1ec5n \u0110\u1ee9c \u00c1nh: 4e677579e1bb856e20c490e1bba96320c3816e68\nNguy\u1ec5n \u0110\u1ee9c A\u0301nh: 4e677579e1bb856e20c490e1bba9632041cc816e68<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"B\u1ea3n n\u00e0y t\u00f4i c\u1eadp nh\u1eadt th\u00eam vi\u1ec7c chuy\u1ec3n \u0111\u1ed5i c\u1ea3 k\u00fd t\u1ef1 vi\u1ebft hoa n\u1eefa. B\u1ed1n h\u00e0m bao g\u1ed3m: pop_hex_convert($str): chuy\u1ec3n chu\u1ed7i ti\u1ebfng Vi\u1ec7t \u1edf d\u1ea1ng m\u00e3 h\u00f3a hex kh\u00f4ng ph\u1ed5 bi\u1ebfn sang d\u1ea1ng ph\u1ed5 bi\u1ebfn, chuy\u1ec3n n\u00f3 th\u00e0nh chu\u1ed7i k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng. \u0110\u1ea7u v\u00e0o c\u00f3 th\u1ec3 l\u00e0 chu\u1ed7i vi\u1ebft hoa, vi\u1ebft th\u01b0\u1eddng hay …<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[238,241],"tags":[],"yoast_head":"\n
C\u00e1c h\u00e0m PHP chuy\u1ec3n \u0111\u1ed5i k\u00fd t\u1ef1 ti\u1ebfng Vi\u1ec7t t\u1eeb d\u1ea1ng m\u00e3 hex \u00edt ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng ph\u1ed5 bi\u1ebfn v\u00e0 ng\u01b0\u1ee3c l\u1ea1i (v1.2) • Ki\u1ebfn c\u00e0ng<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n","yoast_head_json":{"title":"C\u00e1c h\u00e0m PHP chuy\u1ec3n \u0111\u1ed5i k\u00fd t\u1ef1 ti\u1ebfng Vi\u1ec7t t\u1eeb d\u1ea1ng m\u00e3 hex \u00edt ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng ph\u1ed5 bi\u1ebfn v\u00e0 ng\u01b0\u1ee3c l\u1ea1i (v1.2) • Ki\u1ebfn c\u00e0ng","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/","og_locale":"vi_VN","og_type":"article","og_title":"C\u00e1c h\u00e0m PHP chuy\u1ec3n \u0111\u1ed5i k\u00fd t\u1ef1 ti\u1ebfng Vi\u1ec7t t\u1eeb d\u1ea1ng m\u00e3 hex \u00edt ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng ph\u1ed5 bi\u1ebfn v\u00e0 ng\u01b0\u1ee3c l\u1ea1i (v1.2) • Ki\u1ebfn c\u00e0ng","og_description":"B\u1ea3n n\u00e0y t\u00f4i c\u1eadp nh\u1eadt th\u00eam vi\u1ec7c chuy\u1ec3n \u0111\u1ed5i c\u1ea3 k\u00fd t\u1ef1 vi\u1ebft hoa n\u1eefa. B\u1ed1n h\u00e0m bao g\u1ed3m: pop_hex_convert($str): chuy\u1ec3n chu\u1ed7i ti\u1ebfng Vi\u1ec7t \u1edf d\u1ea1ng m\u00e3 h\u00f3a hex kh\u00f4ng ph\u1ed5 bi\u1ebfn sang d\u1ea1ng ph\u1ed5 bi\u1ebfn, chuy\u1ec3n n\u00f3 th\u00e0nh chu\u1ed7i k\u00fd t\u1ef1 vi\u1ebft th\u01b0\u1eddng. \u0110\u1ea7u v\u00e0o c\u00f3 th\u1ec3 l\u00e0 chu\u1ed7i vi\u1ebft hoa, vi\u1ebft th\u01b0\u1eddng hay …","og_url":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/","og_site_name":"Ki\u1ebfn c\u00e0ng","article_author":"https:\/\/www.facebook.com\/anhducnguyen87\/","article_published_time":"2021-09-14T10:58:12+00:00","author":"Nguy\u1ec5n \u0110\u1ee9c Anh","twitter_card":"summary_large_image","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"Nguy\u1ec5n \u0110\u1ee9c Anh","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"8 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/","url":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/","name":"C\u00e1c h\u00e0m PHP chuy\u1ec3n \u0111\u1ed5i k\u00fd t\u1ef1 ti\u1ebfng Vi\u1ec7t t\u1eeb d\u1ea1ng m\u00e3 hex \u00edt ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng ph\u1ed5 bi\u1ebfn v\u00e0 ng\u01b0\u1ee3c l\u1ea1i (v1.2) • Ki\u1ebfn c\u00e0ng","isPartOf":{"@id":"https:\/\/kiencang.net\/#website"},"datePublished":"2021-09-14T10:58:12+00:00","dateModified":"2021-09-14T10:58:12+00:00","author":{"@id":"https:\/\/kiencang.net\/#\/schema\/person\/5e7e1a04d8d1218ad8c421ba43d25c16"},"breadcrumb":{"@id":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kiencang.net\/php-vietnamese-hex-converter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kiencang.net\/php-vietnamese-hex-converter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kiencang.net\/"},{"@type":"ListItem","position":2,"name":"C\u00e1c h\u00e0m PHP chuy\u1ec3n \u0111\u1ed5i k\u00fd t\u1ef1 ti\u1ebfng Vi\u1ec7t t\u1eeb d\u1ea1ng m\u00e3 hex \u00edt ph\u1ed5 bi\u1ebfn v\u1ec1 d\u1ea1ng ph\u1ed5 bi\u1ebfn v\u00e0 ng\u01b0\u1ee3c l\u1ea1i (v1.2)"}]},{"@type":"WebSite","@id":"https:\/\/kiencang.net\/#website","url":"https:\/\/kiencang.net\/","name":"Ki\u1ebfn c\u00e0ng","description":"\u00d4m l\u00fd thuy\u1ebft, h\u00f4n th\u1ef1c h\u00e0nh","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kiencang.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"vi"},{"@type":"Person","@id":"https:\/\/kiencang.net\/#\/schema\/person\/5e7e1a04d8d1218ad8c421ba43d25c16","name":"Nguy\u1ec5n \u0110\u1ee9c Anh","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/kiencang.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d71f9b89393952a8382e30dad26c1ec?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d71f9b89393952a8382e30dad26c1ec?s=96&d=monsterid&r=g","caption":"Nguy\u1ec5n \u0110\u1ee9c Anh"},"description":"Sinh n\u0103m 1987, t\u1ed1t nghi\u1ec7p Cao \u0111\u1eb3ng th\u1ef1c h\u00e0nh FPT qu\u00e3ng 2014, chuy\u00ean ng\u00e0nh Thi\u1ebft k\u1ebf website. T\u00f4i th\u00edch Content, SEO, Ads, T\u0103ng t\u1ed1c website v\u00e0 Th\u01b0\u01a1ng m\u1ea1i \u0111i\u1ec7n t\u1eed. B\u00ean c\u1ea1nh b\u00e0i t\u1ef1 vi\u1ebft, t\u00f4i c\u0169ng d\u1ecbch nhi\u1ec1u n\u1ed9i dung th\u00fa v\u1ecb c\u1ee7a c\u00e1c t\u00e1c gi\u1ea3 kh\u00e1c nhau. FB c\u00e1 nh\u00e2n: facebook.com\/anhducnguyen87. Email li\u00ean h\u1ec7: guiemailchotoi@gmail.com","sameAs":["https:\/\/www.facebook.com\/anhducnguyen87\/"],"url":"https:\/\/kiencang.net\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/posts\/14762"}],"collection":[{"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/comments?post=14762"}],"version-history":[{"count":0,"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/posts\/14762\/revisions"}],"wp:attachment":[{"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/media?parent=14762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/categories?post=14762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kiencang.net\/wp-json\/wp\/v2\/tags?post=14762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}