hctilg/number-to-persian-text

将数字转换为波斯文文本。

v1.0 2023-09-15 06:38 UTC

This package is auto-updated.

Last update: 2024-09-18 20:49:47 UTC


README

将数字转换为波斯文文本。

用法

简单使用

// checking the exists Library.
if (!file_exists("number-to-text.php")) {
  copy('https://raw.githubusercontent.com/hctilg/number-to-text/main/number-to-text.php', 'number-to-text.php');
}

// require Library.
require_once('number-to-text.php');

$input = '<Your Number>';

$output = number_to_text($input);

echo "Text: $output";

API

/number-to-text.php 发送请求。

Preview

命令行界面

运行 PHP 脚本

php number-to-text.php

Preview


测试

网络

进入 ./number-to-text 文件夹并运行 php localhost

php -S localhost:6040

然后打开以下 URL

https://:6040/test.php

Preview

命令行界面

运行 PHP 脚本

php test.php

Preview