How to understand the last two parameters of php file_get_contents?

Let"s go to the code directly. There are the following situations: read the contents of the file test.txt, and the test.txt content is a Chinese character string: a little dripping

.
$homepage = file_get_contents("test.txt");
$homepage = mb_convert_encoding($homepage, "UTF-8","GBK"); //utf-8
echo $homepage;
:


$homepage = file_get_contents("test.txt",NULL,NULL,0,1); //
$homepage = file_get_contents("test.txt",NULL,NULL,0,2); //:
$homepage = file_get_contents("test.txt",NULL,NULL,0,3); //:
$homepage = file_get_contents("test.txt",NULL,NULL,0,4); //:
$homepage = file_get_contents("test.txt",NULL,NULL,0,5); //:
$homepage = file_get_contents("test.txt",NULL,NULL,0,6); //:

what is puzzling now is what is the meaning of the last two parameters? How did it come out and it turned out to be at a loss? If it is an English string I understand, is the last parameter the length or the number of bytes? In my code, it seems that neither the length nor the number of bytes (Chinese is 3 bytes under utf8, and it has been determined that my code is utf8) does not correspond to the result.

Php
Mar.02,2021

has confirmed that my code is utf8

.

mb_convert_encoding($homepage, "UTF-8","GBK")

converts the encoding from GBK to UTF-8 , and outputs normally after conversion, indicating that the original encoding is by no means UTF-8

.

here is the output of UTF-8

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38776-2c0fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38776-2c0fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?