SproutCMS

This is the code documentation for the SproutCMS project

function ipaddressInArray()

Check an IP against a list of IP addresses, with logic for CIDR ranges

Usage

bool Sprout::ipaddressInArray ( mixed $needle , mixed $haystack );

Arguments

  1. $needle
  2. $haystack

Return value

  • bool
    True if the IP is in the list, false if it's not