Manuel Pear

Net_IPv6::getNetmask()

Net_IPv6::getNetmask() -- Calculates the network prefix

Synopsis

  1. <?php
  2. require_once 'Net/IPv6.php
  3. ?> 

string Net_IPv6::getNetmask (string $ip [, int $bits = null])

Description

Calculates the network prefix based on the netmask bits.

Paramètres

  • string $ip - the IP address in Hex format, compressed IPs are allowed

  • int $bits - if the number of netmask bits is not part of the IP, you must provide the mumber of bits

Valeur retournée

string - the network prefix

Note

Cette fonction peut être appelée de façon statique.

Method available since: Release 1.1.0


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique