Fatal error: Cannot redeclare sansur() (previously declared in C:\inetpub\vhosts\securitymasterz.com\httpdocs\def ter\sansur.php:2) in C:\inetpub\vhosts\securitymasterz.com\httpdocs\def ter\sansur.php on line 11
bu hatayı alıyorum. nasıl düzeltirim?
sansur.php içeriği;
<?php
function sansur($dosya,$metin) {
$words = explode(",", file_get_contents($dosya));
$replace = array();
foreach ($words as $key => $word)
{
$words[$key] = "/{$word}/i";
$replace[] = "(sansür)";
}
echo preg_replace($words, $replace, $metin);
}
?>