What functions should be used in PHP to output an image?

To output an image in PHP, you can use the `header()` function to set the content type to `image/jpeg`, `image/png`, or `image/gif`, depending on the image format. Then, you can use the `readfile()` function to output the image file.

<?php
$image = 'path/to/image.jpg'; // path to your image file

header('Content-Type: image/jpeg'); // set content type to JPEG

readfile($image); // output the image file
?>