Documentation

Core_Ip
in package

IP helper

Tags
subpackage

Core

version
7.x
copyright

© 2005-2025, https://www.hostcms.ru

Table of Contents

Methods

ipv4Broadcast()  : string
Get IPv4 broadcast, e.g. '11.22.255.255' for '11.22.5.6' and mask '255.255.0.0'
ipv4Network()  : string
Get IPv4 network, e.g. '11.22.0.0' for '11.22.5.6' and mask '255.255.0.0'

Methods

ipv4Broadcast()

Get IPv4 broadcast, e.g. '11.22.255.255' for '11.22.5.6' and mask '255.255.0.0'

public static ipv4Broadcast(string $ipv4, string $mask) : string
Parameters
$ipv4 : string

IPv4

$mask : string

mask '255.255.255.0'

Return values
string

ipv4Network()

Get IPv4 network, e.g. '11.22.0.0' for '11.22.5.6' and mask '255.255.0.0'

public static ipv4Network(string $ipv4, string $mask) : string
Parameters
$ipv4 : string

IPv4

$mask : string

mask '255.255.255.0'

Return values
string

        
On this page

Search results