Why is the number 4096 used in the fgets function in the PHP code?

The number 4096 in the `fgets` function in PHP code is typically used as the maximum length of characters to read from a file at a time. This number represents the buffer size for reading data from a file handle. It is a common practice to use 4096 as a buffer size for efficient reading of file data in manageable chunks.

$file = fopen("example.txt", "r");
if ($file) {
    while (($line = fgets($file, 4096)) !== false) {
        echo $line;
    }
    fclose($file);
}