Home >Backend Development >PHP Tutorial >请问怎样将字符公式计算出结果

请问怎样将字符公式计算出结果

WBOY
WBOYOriginal
2016-06-13 10:21:41871browse

请教怎样将字符公式计算出结果?
比如 数据库里存入 公式:50+2*3/5

请问 怎样可以将这段 字符 计算得到结果?谢谢

------解决方案--------------------
eval()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn