84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
这样子执行成功:<?php$filename="test.txt";file_put_contents($filename, "nihao");?>
但这样会失败:<?php$filename="test.txt";file_put_contents($filename, "ni&hao");?>
求指点,只是多了一个and符号,请问这样要怎么处理?
"ni&hao" Add the escape character '&' before special characters or change the double quotes to single quotes.
Is it possible? I have tested both methods and both are fine.
<?php $filename="test.txt"; file_put_contents($filename, json_encode("ni&hao")); ?>
"ni&hao" Add the escape character '&' before special characters or change the double quotes to single quotes.
Is it possible? I have tested both methods and both are fine.