PHP code example of punches / otus-hv-4.2

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

    

punches / otus-hv-4.2 example snippets


<?
    use Otus\Lessons\Lesson4\DeclinerNumbers;
    
    $example = new DeclinerNumbers;
    $cows = 33;
    
    echo sprintf('%d %s%s', $cows, $example->declinNumber($cows, "корова", "коровы", "коров"), PHP_EOL);