ip2range

Description

Convert a single IP to a ranged IP.

Syntax

array ip2range (string $fullip)



Parameter $fullip

Expected type: String
Description: The IP string (1.2.3.4, 1.2.3.4-5, 1.2.3.*, etc.)



Return value

Expected type: Array of arrays
Description: Returns an array containing 4 arrays, each with 'low' and 'high' representing the low and high end of each part of the IP


Notes

  • This is the opposite of range2ip
  • Takes a single IP string and splits each part into an array of low and high values
  • Returns an array of 4 arrays, each of which has a 'low' and 'high'
  • Moved to ManageBans.php in 1.1
Advertisement: