public static function Helper::ip__long2ip in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::ip__long2ip()
Its own implementation of the native method long2ip()
@psalm-suppress PossiblyUnusedMethod
Return value
string
1 call to Helper::ip__long2ip()
- SFW::check in src/
lib/ Cleantalk/ Common/ Firewall/ Modules/ SFW.php - * Use this method to execute main logic of the module. * *
File
- src/
lib/ Cleantalk/ Common/ Helper.php, line 1406
Class
- Helper
- CleanTalk Helper class. Compatible with any CMS.
Namespace
Cleantalk\CommonCode
public static function ip__long2ip($ipl32) {
$ip[0] = $ipl32 >> 24 & 255;
$ip[1] = $ipl32 >> 16 & 255;
$ip[2] = $ipl32 >> 8 & 255;
$ip[3] = $ipl32 & 255;
return implode('.', $ip);
}