What function can be used to determine the width and height of an image in PHP?
To determine the width and height of an image in PHP, you can use the `getimagesize()` function. This function returns an array containing the width, height, type, and attribute of the image. By accessing the width and height values from the returned array, you can easily determine the dimensions of the image.
$imagePath = 'path/to/your/image.jpg';
$imageSize = getimagesize($imagePath);
$imageWidth = $imageSize[0];
$imageHeight = $imageSize[1];
echo "Image Width: $imageWidth<br>";
echo "Image Height: $imageHeight<br>";