whileループで次のエラーが発生しました。
解析エラー:構文エラー、予期しないT_ENCAPSED_AND_WHITESPACE、T_STRINGが必要です
$index=1;
while ($index <= 100):
fwrite($outfile, $_POST[\'"variable_" . $index\']);
fwrite($outfile, "\r");
$index = $index + 1;
endwhile;
fclose($outfile);
?>
構文エラーを取得せずにvariable_1、variable_2、variable_3を含める適切な方法は何ですか?
ありがとう。