punches/otus-hv-4.2

There is no license information available for the latest version (v1.0.1) of this package.

Declination by number

v1.0.1 2019-04-04 22:14 UTC

This package is not auto-updated.

Last update: 2025-06-13 03:07:47 UTC


README

Installation

$ git clone https://github.com/Punches/otus-hv-4.2.git

or

$ composer require punches/otus-hv-4.2

Usage

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