How do I take a string of numbers (ie 12 digits) and replace each digit with a "*" ? I've used strlen() to find the exact number of characters in the string.
have a look at the strings functions, like str_replace, preg_replace etc
<? $string = '123456789123'; $strlen = strlen ($string); $string = str_repeat('*', $strlen); echo $string; ?>
This will output "************" this code will work for any string length
Thanks for the help devin, that did exactly what I needed it to do.