PHP - File Handling
What is wrong with this code snippet?
$lines = file('data.txt');
echo $lines;$lines = file('data.txt');
echo $lines;file() returns an array of lines, not a string.echo cannot output arrays directly, causing an error or warning.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions