How to rewite javascript function with php
<p>I have a script.I will show sample.</p>

<pre><code>    &lt;form&gt;    
    &lt;textarea id='input'&gt;&lt;/textarea&gt;
    &lt;input onclick="convert()" value="go function" /&gt;
&lt;textarea id="output"&gt;&lt;/textarea&gt;
    &lt;/form&gt;

&lt;script type="text/javascript" &gt;

function convert() {
src = document.getElementById("input").value;
document.getElementById("output").value = Z1_Uni(src);
}

function Z1_Uni(input)
{
   var output=input;
   var tallAA = "\u102B";
   var AA = "\u102C";
   var vi = "\u102D";
   var ii = "\u102E";
   var u = "\u102F";
   var uu = "\u1030";
}
&lt;/script&gt;
</code></pre>

<p>This  sample will be show output result with javascript.I want to rewrite with php.</p>

<p>sample is following.</p>

<pre><code>&lt;form action="convert.php" method="post"&gt;
&lt;textarea id="input" name="input"&gt;&lt;/textarea&gt;
&lt;input type="submit" Value="go to convert page"&gt;
&lt;/form&gt;
</code></pre>

<p>Convert.php</p>

<pre><code>&lt;?php $input=$_POST['input'];

$output=(?????????????? );
//(Here javascript function will be work.I want to know this step.)
?&gt;
</code></pre>

<p>Sample link is here <a href="http://mrdba.info/zawgyi-converter/" rel="nofollow">http://mrdba.info/zawgyi-converter/</a></p>
