+
95
-

回答

比如第三方程序为c#写的testapp,这里面有一个readline,我们假设输入为123,那么php中的exec写法如下

exec('echo 123  | testapp', $out, $ret);

网友回复

我知道答案,我要回答