<?php $vowel = array('a' => 'ᅡ', 'eo' => 'ᅥ', 'o' => 'ᅩ', 'u' => 'ᅮ', 'eu' => 'ᅳ', 'i' => 'ᅵ', 'ae' => 'ᅢ', 'e' => 'ᅦ', 'oe' => 'ᅬ', 'wi' => 'ᅱ', 'ya' => 'ㅑ', 'yeo' => 'ㅕ', 'yo' => 'ㅛ', 'yu' => 'ㅠ', 'yae' => 'ㅒ', 'ye' => 'ᅨ', 'wa' => 'ᅪ', 'wae' => 'ᅫ', 'wo' => 'ᅯ', 'we' => 'ᅰ', 'ui' => 'ᅴ', 'y' => 'ㅣ'); $consonant = array('g' => 'ㄱ', 'k' => 'ㄱ', 'kk' => 'ㄲ', 'k' => 'ㅋ', 'd' => 'ㄷ', 't' => 'ㄷ', 'tt' => 'ㄸ', 't' => 'ㅌ', 'b' => 'ㅂ', 'pp' => 'ㅃ', 'p' => 'ㅍ', 'j' => 'ㅈ', 'jj' => 'ㅉ', 'ch' => 'ㅊ', 's' => 'ㅅ', 'ss' => 'ㅆ', 'h' => 'ㅎ', 'n' => 'ㄴ', 'm' => 'ㅁ', 'ng' => 'ㅇ', 'r' => 'ㄹ', 'l' => 'ㄹ', 'f' => 'ㅍ', 'q' => 'ㅋ', 'x' => 'ㅋ', 'z' => 'ㅈ'); require_once 'lib/FileLog.class.php'; $f = new FileLog('data/names.tsv', array('time', 'name', 'korean')); if ($_POST['name']) { $f->save(array(time(), $_POST['name'], strlen($_POST['korean']) > 0 ? $_POST['korean'] : $_POST['mozilla'])); header('Location: ./'); exit; } $d = $f->load(); $d = array_reverse($d); ?> <!DOCTYPE html> <html lang="en-US"> <head> <meta name="viewport" content="width=device-width" /> <meta charset="UTF-8"> <title>Let's type my name in Korean.</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>My Name to Korean</h1> <p>Let's try to type my name in Korean with Firefox OS Korean keyboard.</p> <h2>Conversion table</h2> <h3>vowel</h3> <ul class="table"> <?php ksort($vowel);