Jump to content

[SOLVED] Character Replacement


jeffrydell

Recommended Posts

This seems simple enough, but I haven't found an easy answer in reading posts here or documentation on the official php site.  Thanks, in advance, for your patience.

 

I have a users table which includes username, password, and permission level.  In the admin screen of the website I would like to display a table of all the users, but don't want to display the passwords on that table ... instead I'd like to just display *s for each character.  So if the password was "fish", the table cell would read ****, if the password was phish, the table cell would read *****, etc.

 

I already know about the strlen() function which can tell me the length of the password string, but what do I use to tell php to "say" * once for each character in the string?

Link to comment
https://forums.phpfreaks.com/topic/53933-solved-character-replacement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.