PHP code example of anper / callable-aggregate

1. Go to this page and download the library: Download anper/callable-aggregate library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

anper / callable-aggregate example snippets

 php
use Anper\CallableAggregate\CallableAggregate;

$aggregate = new CallableAggregate();
$aggregate->append(function ($arg) {
    echo $arg;
});

$aggregate('hello');