Home  >  Article  >  Backend Development  >  PHP如若实现自定义公式

PHP如若实现自定义公式

WBOY
WBOYOriginal
2016-06-13 12:31:591222browse

PHP如果实现自定义公式
如题,已用PHP实现把用户自定义($a+$b*2-3*$c)的计算公式存到mysql表中,然后需要计算时,从表中读取公式,但现在读取出来后,无法用这个公式了,被当成字符串了,要怎么处理,变量在公式读取出前已经预设置好了

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