In this article, you will learn how to get the IP address of a website in PHP.
Let’s say you want to find out the IP address of Codesource.io’s website. You need to know the URL, which is codesource.io
Get IP Address Of Website in PHP
In order to get the IP address of a website, you can use the gethostbyname()
method.
#code examples #php