If you need to find the file size in php then you can easily do it using the PHse fileseize (). Usually we need to find and test before uploading an image. So if you want to get the size of the image then a compelling example can help you. It will resize by byte.
filename : Specifies the path to the file to check