如何删除此PHP代码中的回音?
我有以下PHP代码如何删除此PHP代码中的回音?,php,Php,我有以下PHP代码 #The facebook message $fh = fopen('comments.txt', 'r') or die('Unable to open data1.txt'); while($line = fgetcsv($fh, 0, '||' )) { if ($line[0] == $name) { echo <<<EOL My color is $line[2] EOL; break; // if there's
#The facebook message
$fh = fopen('comments.txt', 'r') or die('Unable to open data1.txt');
while($line = fgetcsv($fh, 0, '||' )) {
if ($line[0] == $name) {
echo <<<EOL
My color is $line[2]
EOL;
break; // if there's only ever one '5678' line in the, get out now.
}
}
fclose($fh);
$fb = $line[2];
#facebook消息
$fh=fopen('comments.txt','r')或die('notopendata1.txt');
而($line=fgetcsv($fh,0,| |’)){
如果($line[0]==$name){
echo//echo如果在If
语句中没有任何处理方法,则可以对整个块进行注释:
#The facebook message
$fh = fopen('comments.txt', 'r') or die('Unable to open data1.txt');
while($line = fgetcsv($fh, 0, '||' )) {
if ($line[0] == $name) {
/*
echo <<<EOL
My color is $line[2]
EOL;
*/
break; // if there's only ever one '5678' line in the, get out now.
}
}
fclose($fh);
$fb = $line[2];
#facebook消息
$fh=fopen('comments.txt','r')或die('notopendata1.txt');
而($line=fgetcsv($fh,0,| |’)){
如果($line[0]==$name){
/*
echo您可以注释或删除以下代码:
/*echo <<<EOL
My color is $line[2]
EOL;*/
/*echo我不明白,为什么你不能删除这些代码?如果你正在使用一些源代码管理软件(如果不是,你应该),您可以简单地删除这些行。如果您需要返回这些行,您可以浏览日志。它给了我以下错误…解析错误:语法错误,在/home/galawe/public\u html/magimagi.com/login/uploader.php第58行中出现意外的T_字符串。您对所有三行都进行了注释是吗?我猜您对编码非常陌生。您最好还是继续吧通过一个关于编码基础的教程,网上有很多教程,或者你可以出去买一本书,也许你的编码很好。最后,如果一个问题回答正确,接受答案是一种常见的礼貌。如果你问的问题太多,却从来没有接受过答案,那么当你询问和回答时,它会显示在你的ID上人们通常不会回答太多。我对PHP编码非常陌生…您建议初学者和自学哪些书?再次感谢。
/*echo <<<EOL
My color is $line[2]
EOL;*/