<?php $s = array("@[а-я]@"); $r = array("*"); $fam = "Перегудов"; $fam = preg_replace("@^.@e", "", $fam); $fam = preg_replace("@.@e", "*", $fam); //echo preg_replace($s, $r, $fam);
You have javascript disabled. You will not be able to edit any code.