Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $search = array("<?php", "god", "gOd"); //do not want to do this in so many words\
  2. $replace = array("<-php", "God", "God");
  3. $comment = str_replace($search, $replace, mysqli_real_escape_string($conexao, $_POST['comment']));
  4.  
  5. preg_replace('/regular expression here/i', 'replacement here', $string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement