PHP code example of wollkey / otus-package

1. Go to this page and download the library: Download wollkey/otus-package 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/ */

    

wollkey / otus-package example snippets




use Wollkey\OtusPackage\Adder;

$sum = (new Adder())->sumOfThree(1, 2, 3);



use function Wollkey\OtusPackage\sumOfThree;

$sum = sumOfThree(1)(2)(3);