PHP Calculator for arithmetic expressions