|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/test/ |
Upload File : |
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower ($str);
print_r($str);
// 결과: mary had a little lamb and she loved It so
?>
<script>
function gf_Convert2ByteChar(x_char) {
var x_2byteChar = ""; //컨버트된 문자
var c = x_char.charCodeAt(0);
if(32 <= c && c <= 126) { //전각으로 변환될수 있는 문자의 범위
if(c == 32) { //스페이스인경우 ascii 코드 32
x_2byteChar = unescape("%uFFFC");
} else {
x_2byteChar = unescape("%u"+(c+65248).toString(16));
}
}
return x_2byteChar;
}
</script>
<input type="text" onkeyUp="z2h_word(this.value)">
<input type=text size="20" value="" onkeyUp="this.value = gf_Convert2ByteChar(this.value)">