Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I want to allow users to insert values in a form with operators, as in this example.
60*24
I need to know what is the most appropriate way to process this in php
您可以为此使用eval函数
一旦你提交表格,就会出现这样的事情
echo eval($_POST['yourtextfieldname']);