Hi everyone, I need some help:
I have a string looks like this:
Hello there this is my number 123456
and I would like it to be like this:
Hello there this is my number 123xxx
Just first 3 numbers are visible and the rest of it is replaced with xxx
does anyone have an idea how to do this? or where can i wint some tutorial
Regards
replacing part of string
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
I would suggest you look at regular expressions especially preg_replace.