Membuat Tulisan Alay Dengan Php

Posted by

Selamat pagi sobat blogger. Pagi2 bangun langsung berselancar. Eh nemu tutorial php di blog kawan ane. Yaitu tutorial Membuat Tulisan Alay. Tampilan nya seperti gambar di bawah ini.


Untuk koding nya silahkan sedot dibawah ini gan.
<form action="" method="post">
<h3>Alay Genator sederhana dengan PHP</H3>
<textarea name="text" rows="5" cols="50">
</textarea><br>
<input type="submit" name="submit" value="Generate">
</form>

<?php
if(isset($_POST[submit]) && $_POST[submit]!=""){
//definisikan string
$asli=array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"); 
$alay=array( "4","13","C","1)","3","F","9","(-)","!","J","I<","I_","111","11","()","P","Q","12","5","7","(_)","\/","UU","X","Y","Z");
$text=$_POST['text'];

$kecil=strtolower($text);

$hasil=str_replace($asli,$alay,$text);
}
?>
<textarea rows="5" cols="50" readonly><?=$hasil;?>
</textarea><br>


Blog, Updated at: 3/18/2013 07:02:00 AM

2 komentar:

Sebagai Pengunjung yang baik berikanlah komentar anda untuk membantu meningkatkan trafic blog ini.Terima Kasih :)