nielbuys/field_calculate

v1.3 2021-04-13 11:26 UTC

This package is auto-updated.

Last update: 2024-11-13 19:35:35 UTC


README

Class provided by http://stackoverflow.com/users/555222/clarkk

in this answer http://stackoverflow.com/a/27077376

To install

composer require nielbuys/field_calculate

Usage instruction

$calc = new Field_calculate();
echo $calc->calculate('34+2');
echo $calc->calculate('(34+2)*3');