Asf_Util::ip

Get IP address

Order: HTTP_CLIENT_IP -> HTTP_X_FORWARDED_FOR -> REMOTE_ADDR


Description

public static string Asf_Util::ip(void)

Return Values

Return the IP Address, or FALSE if IP Address read/check failed.

Examples

Example #1

<?php
// string(9) "127.0.0.1"
var_dump(Asf_Util::ip());