1 2 3 4 5 6 7
<?php $text = 'statement'; $text = substr_replace($text, '*', 0, 1); $text = substr_replace($text, '*', 4, 0); echo $text;