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