Skip to content

get_request_ip ​

php
string get_request_ip ()

Returns the IP address of the user's device.

Example:

php
$ip = get_request_ip();
print("Hello, your IP address is " . $ip);

Result:

Hello, your IP address is 123.123.123.123