htj/arithmetic

字符串四元运算

1.1.1 2018-11-14 12:07 UTC

This package is auto-updated.

Last update: 2024-06-15 19:58:52 UTC


README

支持字符串运算符 + - * / 数字支持百分数 小数点

$model = new ArithmeticCount();

$expr = '1+1+1+1*0.50%+50%';

$expr = '2+45+6/2-45+(23-4)*5';

echo $model->makeCount($expr)