似乎fgets在它返回的所有内容之后都放了一个空格。下面是一些示例代码:Echo "Opening " . $_SERVER{'DOCUMENT_ROOT'} .Feof($FileHandle)){ Echo $Line .opened:
Second line wordAnother line of text word
Blab
我想输入一个用户输入的输入字符,然后使用printf()和fget()方法将其打印出来(这都是更大程序的一部分,但这是一个孤立的问题)。input[1];
printf("Please enter the minimum value the random number can be: "); printf("\n%c", input[0]);我期望上面的代码能正