ip_address()
function ip_address(): string
Description
Retrieves the client's IP address.
Return Value
| Type | Description |
|---|---|
| string | Returns the client's IP address. |
Example Usage
echo ip_address(); // Output: Client's IP address.
function ip_address(): string
Retrieves the client's IP address.
| Type | Description |
|---|---|
| string | Returns the client's IP address. |
echo ip_address(); // Output: Client's IP address.