copes
10-22-2007, 08:19 AM
Hi there,
i'm currently trying to replace all the characters in a password string with asterix's as to show the password length but not reveal the actual password.
i'm having some difficulty understanding how to use ereg_replace
this is the current code im trying:
$password = ereg_replace("[^a-z, A-Z, 0-9]"," ",$row['password']);
but i could be completely wrong about how the function works. could anyone give me some pointers? i've had a look at the function description on php.net but i didn't really understand it.
Thanks
i'm currently trying to replace all the characters in a password string with asterix's as to show the password length but not reveal the actual password.
i'm having some difficulty understanding how to use ereg_replace
this is the current code im trying:
$password = ereg_replace("[^a-z, A-Z, 0-9]"," ",$row['password']);
but i could be completely wrong about how the function works. could anyone give me some pointers? i've had a look at the function description on php.net but i didn't really understand it.
Thanks