PHP code example of cjrasmussen / number

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

    

cjrasmussen / number example snippets


use cjrasmussen\Number\Convert;

$num = Convert::intToOrdinal(153);
echo $num; // 153rd

$num = Convert::intToEnglish(153);
echo $num; // one-hundred fifty-three

$num = Convert::intToRoman(153);
echo $num; // CLIII