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

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

WBOY
Release: 2016-06-13 13:32:22
Original
791 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template