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