English 中文(简体)
PHP中的 Nest
原标题:Nested Quotes in PHP

我在PHP的引文中还有另一个问题,在普通套体内有两套nes,这是我认为应该做的工作。

 if (!($stream = ssh2_exec($con,  screen -p 0 -S new3 -X eval "stuff "stop"15" ))) {

这就是说,它只是一个简单的文字:

screen -p 0 -S minecraft -X eval  stuff "stop"15 

因此,我需要帮助把它从篮子带到PHP工作,感谢!

最佳回答

你们需要逃脱,例如:

if (!($stream = ssh2_exec($con,  screen -p 0 -S minecraft -X eval  stuff \"stop\"\015  ))) {

太多的引言,你们获得了leaning toothpick problem

问题回答

暂无回答




相关问题
switching between screens

I m using GNU screen just recently. I m wondering if there is an easier way to switch between screen. for example to map it to alt+left arrow and alt+right arrow ?

Custom script in .screenrc

I made a script that spawns a remote shell or runs a local shell whether it s on the current machine or not: #!/bin/bash # By: benoror <benoror@gmail.com> # # spawns a remote shell or runs a ...

GNU Screen: Changing Global Key-binding

I ve recently started using screen in remote sessions. One problem is that emacs doesn t recognize its C-a and I don t want to bind emacs C-a to something else, as I m very used to it. Google shows ...

Set screen-title from shellscript

Is it possible to set the Screen Title using a shell script? I thought about something like sending the key commands ctrl+A shift-A Name enter I searched for about an hour on how to emulate ...

热门标签