rkb/convert_to_ordinal

This package has converted any valid number and string to it's ordinal number.

Maintainers

Package info

github.com/hossainrkb/ordinal_number_gen

pkg:composer/rkb/convert_to_ordinal

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

dev-master 2020-04-09 20:48 UTC

This package is auto-updated.

Last update: 2026-04-17 23:49:16 UTC


README

  • This package has converted any valid number and string to it's ordinal number.

Installation

use composer require rkb/convert_to_ordinal to install

Usage

include './vendor/autoload.php';

$data = new App\OrdinalNumber();

$value = 1441;

$value = "4    4,4,55,55,1441";

echo ($data->ordinal_convert($value));

Output

     "1st",
     "2nd",
     "3rd",
     "4th",
     "5th",
     "6th",
     "7th",
     "8th",
     "9th",
     "10th",