WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

MaxMind\Db

Reader::getWithPrefixLen() public WC 1.0

Retrieves the record for the IP address and its associated network prefix length.

{} Это метод класса: Reader{}

Хуков нет.

Возвращает

Массив. an array where the first element is the record and the second the network prefix length for the record

Использование

$Reader = new Reader();
$Reader->getWithPrefixLen( $ipAddress );
$ipAddress(строка) (обязательный)
the IP address to look up

Код Reader::getWithPrefixLen() WC 5.4.1

<?php
public function getWithPrefixLen($ipAddress)
{
    if (\func_num_args() !== 1) {
        throw new InvalidArgumentException(
            'Method takes exactly one argument.'
        );
    }

    if (!\is_resource($this->fileHandle)) {
        throw new BadMethodCallException(
            'Attempt to read from a closed MaxMind DB.'
        );
    }

    if (!filter_var($ipAddress, FILTER_VALIDATE_IP)) {
        throw new InvalidArgumentException(
            "The value \"$ipAddress\" is not a valid IP address."
        );
    }

    list($pointer, $prefixLen) = $this->findAddressInTree($ipAddress);
    if ($pointer === 0) {
        return [null, $prefixLen];
    }

    return [$this->resolveDataPointer($pointer), $prefixLen];
}