hctilg / number-to-persian-text
将数字转换为波斯文文本。
v1.0
2023-09-15 06:38 UTC
Requires
- php: >=5.4.0
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
发送请求。
命令行界面
运行 PHP 脚本
php number-to-text.php
测试
网络
进入 ./number-to-text
文件夹并运行 php localhost
php -S localhost:6040
然后打开以下 URL
https://:6040/test.php
命令行界面
运行 PHP 脚本
php test.php