php turn words to full-width
<p>Is there any method to change words to full-width like:</p>

<p>123 ->１２３</p>

<p>Because I have to turn Japanese words to full-width, I cannot use some way like enumeration.
( like: str_replace('1','１',$string); str_replace('2','２',$string); ...　and so on.)</p>

<p>How do I solve the problem?</p>

<p>And, is it possible to force user typing full-width words?</p>

<p>My web is written in PHP, and I know how to combine with javascript.</p>

<p>The typing I already clarify is like:</p>

<pre><code>onKeyUp="value=value.replace(/[\x00-\xff]/g,'')"
</code></pre>

<p>(The upper regular expression is enable user typing Japanese like 'カメラ', Chinese　like '你好', and full-width words, that is what I want.)</p>

<p>But I don't know how to force the user typing full-width words; like  can force user input English or numeric words.( Or it is impossible to do it)</p>

<p>Any replying appreciate!</p>
