Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function terjemah() {
- echo '
- <center>
- <form method="post">
- <h2>Normal</h2>
- <textarea name="text"></textarea><br />
- <input type="submit" name="submit" value="terjemah" />
- </form>
- <h2>Autis</h2>
- <textarea readonly>';
- if($_POST["submit"] == "terjemah") {
- $text=$_POST["text"];
- $output=str_replace("e","w",$text);
- $output2=str_replace("o","w",$output);
- $output3=str_replace("a","w",$output2);
- $output4=str_replace("u","w",$output3);
- $output5=str_replace("i","y",$output4);
- // huruf gede
- $output6=str_replace("E","W",$output5);
- $output7=str_replace("O","W",$output6);
- $output8=str_replace("A","W",$output7);
- $output9=str_replace("U","W",$output8);
- $output10=str_replace("I","Y",$output9);
- echo $output10;
- }
- echo "</textarea></center>";
- }
- terjemah();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement