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.
我有这样的字符串,
$condition = "if($test == '1')";
我想将其转换为条件表达式而不使用eval().
eval()
可能吗?
看看$functionName()或call_user_func($functionName)
$functionName()
call_user_func($functionName)
More clarification.