Advertisement
nemat0da

[PHP] Remove Duplicate text

Dec 14th, 2016
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <form name="data" method="post">
  2. <textarea name="res7ock" cols='50' rows='12' placeholder="Input Your Text"></textarea><br><br>
  3. <input type="submit" name='res' value="GASCOK">
  4. <input type="reset" value="CANCEL">
  5. </form>
  6. </center>
  7. <?php
  8. error_reporting(E_ALL ^ ( E_NOTICE | E_WARNING ));
  9. $ya=$_POST['res'];
  10. $co=$_POST['res7ock'];
  11. $pecah=explode("\r\n",$co);
  12. if($ya){
  13. $hasil = array_unique($pecah);
  14. echo "<center><textarea cols='50' rows='12'>".implode ($hasil,"\n")."</textarea>";
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement