I have now some question about hiding some characters … I want to hide first few characters fro user name on account management. Here is my problem:
On account management I have $username in table which is taken from DB an I need this username not to be displayed like this:
Username => **rname – just replace few first characters with “” using php or similar code for webpages.
I have now some question about hiding some characters … I want to hide
Share
I assume you don’t want to let them know how many characters are in the username, either? Use substr_replace()
Outputs:
**rnameOf course if a username is shorter this won’t work. You could instead do