Home  >  Article  >  Backend Development  >  一句php的写法,在线帮下

一句php的写法,在线帮下

WBOY
WBOYOriginal
2016-06-23 13:31:411221browse

$start="2";
$jieshu="10";

$cmd = 'abc.exe -i 1.mp3 -b 360 -ar 24000 -ss  $start -t $jieshu 2.m4r';
//上面这句正确得如何写?我的start和jieshu执行读不到参数?正确得如何写才可以?
?>


回复讨论(解决方案)

$cmd = 'abc.exe -i 1.mp3 -b 360 -ar 24000 -ss  .$start -t .$jieshu 2.m4r';
我在前面加个符号.也不行。。。

$cmd = "abc.exe -i 1.mp3 -b 360 -ar 24000 -ss  .$start -t .$jieshu 2.m4r"; 换成双引号 不然里面不会最为变量解析的

问题都不描述清楚。你要做些什么?

单引号编译变量,双引号编译,也可以给变量外边加{}

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