I need some help with the `gethostbyaddr()` function in PHP. I'm currently working on a project where I need to retrieve the hostname associated with a given IP address. From what I understand, the `gethostbyaddr()` function can be used to achieve this.
However, I'm a bit confused about how to use this function. Can someone provide me with an example of how to implement this function correctly? I would also appreciate it if you could provide some explanation along with the example code.
Thanks in advance!