
21.06.2009, 13:31
|
|
Постоянный
Регистрация: 16.04.2008
Сообщений: 889
Провел на форуме: 12942062
Репутация:
1550
|
|
задание 002:
PHP код:
<?php
$badwords=array('union', 'select', 'xuy');
$str='union union select [uy unununionionion fdfsd xxuyuy';
foreach ($badwords as $word)
{
while(preg_match("|$word|is",$str))
$str=str_ireplace("$word","",$str);
}
echo $str;
?>
|
|
|