PHP Classes

File: src/helpers.php

Recommend this page to a friend!
  Classes of Caleb   Aggregator   src/helpers.php   Download  
File: src/helpers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aggregator
Aggregate multiple IP addresses in single ranges
Author: By
Last change: Improve file headers.
Code-style patch.
Date: Yesterday
Size: 488 bytes
 

Contents

Class file image Download
<?php
/**
 * Aggregator helpers file (last modified: 2022.02.12).
 * @link https://github.com/CIDRAM/Aggregator
 *
 * AGGREGATOR COPYRIGHT 2017 and beyond by Caleb Mazalevskis (Maikuolan).
 *
 * License: GNU/GPLv2
 * @see LICENSE.txt
 */

if (!function_exists('aggregate')) {
   
/**
     * Aggregate it!
     *
     * @param string $input
     * @return string
     */
   
function aggregate($input)
    {
        return (new \
CIDRAM\Aggregator\Aggregator())->aggregate($input);
    }
}