I wanna show two first range of an IP. For example, I have 127.0.0.1. I wanna get 127.0 and use this example:
127.0.0.1
show 127.0
192.168.1.6
show 192.168
How can I do that?
I tried $_SERVER['REMOTE_ADDR']
but it shows the whole IP address.