| TCH (statz) | ![]() #1, Főfasz (10579) |
464 | #1dba | ^ | Idézet | Wed, 27 Jun 2012 17:21:50 +02 |
| 89.134.*.* |
|
*.catv.broadband.hu |
Pety: Van erre valami built-in funkció?function charfilter($string, $excluding, $charset)
{
$cs = is_array($charset);
$excluding === true ? return str_replace(!$cs ? str_split($charset) : $charset, '', $string) : 0;
$result = '';
$sl = strlen($string);
$cs ? $charset = implode('', $charset) : 0;
for ($i = 0; $i < $sl; ++$i)
{
strpos($charset, $string[$i]) ? $result .= $string[$i] : 0;
}
return $result;
} |