createlinux/helper

There is no license information available for the latest version (v1.0.0) of this package.

v1.0.0 2023-08-24 07:25 UTC

This package is auto-updated.

Last update: 2025-01-12 04:35:32 UTC


README

基础运算

/**
* $scale int 精度
 * 第二个参数为可变参数,数据类型为:array|int|float
 * 数组类型中只能包含int或者float
 */
Createlinux\Helper\Math\Basic::add(int $scale,[2,3,4,5],4,4.8,95);
Createlinux\Helper\Math\Basic::sub(int $scale,[2,3,4,5],4,4.8,95);
Createlinux\Helper\Math\Basic::div(int $scale,[2,3,4,5],4,4.8,95);
Createlinux\Helper\Math\Basic::mul(int $scale,[2,3,4,5],4,4.8,95);

自然语言处理

//是否包含中文
Regular::hasChinese(string $string);
//是否包含日文
Regular::hasJapanese(string $string);

输出

//print_r函数增加了换行符\n
println(string $anything)