How can PHP be used to retrieve image file size information, specifically width, height, and file size in KB?

To retrieve image file size information in PHP, you can use the `getimagesize()` function which returns an array containing the image width, height, type, and size. To get the file size in KB, you can divide the size in bytes by 1024.

$imagePath = 'path/to/image.jpg';
$imageInfo = getimagesize($imagePath);
$imageWidth = $imageInfo[0];
$imageHeight = $imageInfo[1];
$fileSizeKB = round(filesize($imagePath) / 1024, 2);

echo "Image Width: $imageWidth pixels, Image Height: $imageHeight pixels, File Size: $fileSizeKB KB";