How can I use the filesize function to get the size of a file in PHP? Example code: - Biz Tech

How can I use the filesize function to get the size of a file in PHP? Example code:

Listen
$file = "/path/to/file.txt";

$file_size = filesize($file);

echo $file_size;