I have a php script that retrieves usernames from my mysql DB and displays that info on a page.
What I would like to do is replace the first 3 charaters of that username and replace it with 3 special charcters. I want to do this for security reasons. Does anyone have any code that would do this for me.
Thanks in advance.
Tas Man
Replace and print characters retrieved from Mysql
Moderator: General Moderators
-
blackbeard
- Forum Contributor
- Posts: 123
- Joined: Thu Aug 03, 2006 6:20 pm
Code: Select all
substr_replace($origString, $newSubString, $startindex, $numCharactersToReplace);