dtyw10299 2013-06-30 23:31
浏览 117

php字符串中双引号内的反斜杠

this doesn't work because of the backslash inside the double quote

exec("convert $file -resize 100x100\> $destination");

I've tried inserting {} and \ and even \\ with no success!

exec("convert $file -resize 100x100{\}> $destination"); //failed!
exec("convert $file -resize 100x100\\\> $destination"); //failed!
exec("convert $file -resize 100x100\\> $destination"); //failed!

I know i'm close, but i can't find it! What is it ?? Thanks

  • 写回答

5条回答 默认 最新

  • doumeba0486 2013-06-30 23:34
    关注

    If you need to put a backslash inside a text, then you should write \\. Then you're writing a backslash (escape) and then writing a backslash.

    评论

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作