Is there a function to hide the last 2-3 digits in an IP so it shows
127.0.0.xxx
For example?
I know of str_replace, but that can’t be used for this, or can it? =P
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
is the solution I would choose because I’m comfortable with regular expressions and then it shows immediately what it’s doing. There are several other possibilities.