I have the following peoplelist.txt
text file with 2 rows:
1,Hello,[email protected],Boss
2,Hello Again,[email protected],Boss
My code to output this is:
$handle = fopen("peoplelist.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
echo $line;
}
fclose($handle);
}
Is it possibly instead of outputting the entire line, I just output the data in the 2nd column (aka Hello
& Hello Again
)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…