PHP code example of arifi / numbers-to-perisan
1. Go to this page and download the library: Download arifi/numbers-to-perisan 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/ */
arifi / numbers-to-perisan example snippets
use Arifi\NumbersToPersianConverter;
$string = new NumbersToPersianConverter();
$number = 123;
echo $string->convert($number); // یکصد و بيست و سه
$number = 123.43;
echo $string->convert($number); // يكصد و بيست و سه عشاریه چهار سه