htj / arithmetic
字符串四元运算
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:libaray
Requires
- php: >=7.0
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)