Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これがなぜなのか誰か教えてくれませんか
$pole = explode("\n", file_get_contents('obce.txt')); echo $pole[1]; //in obce.txt it is Test
と違う
$pole[1]="Test"; echo $pole[1];
私にとっては、それは同じことのようです。
Windows では、行末文字は「\r\n」であることに注意してください。
試す:
$pole = explode("\r\n", file_get_contents('obce.txt'));