What are some alternative methods in PHP to force the browser to always load the most recent version of an image without relying on manual page reloads?

When an image is updated on a website, the browser may cache the previous version of the image and not display the most recent version. To force the browser to always load the most recent version of an image, you can append a unique query string to the image URL. This query string will change whenever the image is updated, prompting the browser to fetch the new version.

<img src="image.jpg?<?php echo filemtime('image.jpg'); ?>" alt="Image">