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