How can you skip the first line when reading a text file in PHP?
When reading a text file in PHP, you can skip the first line by using the `fgets()` function to read and discard the first line before processing the rest of the file. This can be achieved by calling `fgets()` once before entering a loop to read the remaining lines.
$filename = 'example.txt';
$file = fopen($filename, 'r');
// Skip the first line
fgets($file);
// Read and process the rest of the file
while (($line = fgets($file)) !== false) {
// Process each line here
}
fclose($file);