1
$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']));
我想包括陣列中的大寫和小寫字母,如何爲$search
和$replace
做到這一點?preg_replace函數在PHP數組
RTM使用: 'str_ireplace()'](http://php.net/manual/en/function.str-ireplace.php) – Rizier123
工作,謝謝你 –
不客氣! – Rizier123