0

基本的に、この文字列を変数に代入したい');" のですが、エラーが発生しています。私はNetbeansに取り組んでいます

エラー:

Syntax error

unexpected: '"'

after:  String '"');"'

expected:instanceof, as, =>, }, ',', OR, XOR, &&, ?, ;, ||, &&, |, ^, &, ==, !=, ===, !==, <=,   >=, <, >, <<, >>, +, -, *, /, %, '.', ], ), :

お気に入り

$my_string = `"ı');""` 

私は何が欠けていますか?引用符だと思います

4

3 に答える 3

0

You need to escape the characters in the string:

$my_string = "ı');\"";

With this:

echo $my_string;

Output:

ı');"
于 2013-09-30T12:07:09.693 に答える
0

This is the solution:

$my_string = "ı');\"";

You need to escape the ".

于 2013-09-30T12:07:12.890 に答える
0

You have to escape the 2nd to last ".

"ı');\""
于 2013-09-30T12:07:19.383 に答える