$text ="Privet#Mir#Solnce#Zhuvachka";
$result = preg_replace('/[^a-zа-яё]+/i', '', $text);
echo $result;
выводит PrivetMirSolnceZhuvachka
что то мне подсказывает что трабл не в этом куске :)
$text ="Privet#Mir#Solnce#Zhuvachka";
$result = preg_replace('/[^a-zа-яё]+/i', '', $text);
echo $result;
<form method=post>
<input name="vivod">
<input type="submit" value="Ok" />
</form>
<?php
if(isset($_POST['vivod'])) $text = $_POST['vivod'];
$result = preg_replace('/[^a-zа-яё]+/i', '', $text);
echo $result;
?>
Цитата (Медведь @ 26.05.2014 - 18:21) |
может денвер так? |
Цитата |
а вот с русскими буквами бяда |
Цитата (twin @ 26.05.2014 - 18:28) | ||
Kopipaster
Модификатор u поставь. |