socket_addrinfo_lookup
Get an array of getaddrinfo content about the given hostname
(PHP 7 >= 7.2.0, PHP 8)
socket_addrinfo_lookup — Gets an array containing getaddrinfo content about the given hostname
illustrate
socket_addrinfo_lookup(string $host, ?string $service = null, array $hints = []): array|false
Version | illustrate |
---|---|
8.0.0 | When successful, the function now returns the AddressInfo instance array. Before this, the resource array is returned. |
8.0.0 | service is now allowed to be null. |