in reply to Re: Golf: Replacing part of a string with "*"in thread Golf: Replacing part of a string with "*"
substr($string,0,-4,'*'x12); [download]
Much clearer.