Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $search = array("<?php", "god", "gOd"); //do not want to do this in so many words\
- $replace = array("<-php", "God", "God");
- $comment = str_replace($search, $replace, mysqli_real_escape_string($conexao, $_POST['comment']));
- preg_replace('/regular expression here/i', 'replacement here', $string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement