使用addslashes功能:
addslashes
echo addslashes('csvclean -q " -e ascii -z 10000000000000 file.csv');
输出:
csvclean -q \" -e ascii -z 10000000000000 file.csv
编辑:
发出命令执行此操作:
exec('csvclean -q \" -e ascii -z 10000000000000 ' . $csvfilename );