一句php的写法,在线帮下

WBOY
Release: 2016-06-23 13:31:41
Original
1220 people have browsed it

$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"; 换成双引号 不然里面不会最为变量解析的

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!