What are the limitations of working with 32-bit variables in PHP when dealing with large file sizes?

When working with large file sizes in PHP, the limitations of using 32-bit variables may lead to overflow issues or inaccurate calculations. To solve this problem, you can use the PHP function `filesize()` to get the size of the file in bytes, which returns an integer value. This integer value can then be safely used to perform calculations or comparisons with large file sizes.

$fileSize = filesize('path/to/your/file.ext');
echo "File size: " . $fileSize . " bytes";