Are there any built-in PHP functions that can easily crop and resize images to a specific dimension?

To crop and resize images to a specific dimension in PHP, you can use the `imagecopyresampled()` function along with `imagecreatetruecolor()` to create a new image with the desired dimensions. You can also use the `imagecrop()` function to crop the image to the specified dimensions.

// Load the original image
$original_image = imagecreatefromjpeg('original.jpg');

// Set the desired dimensions
$width = 200;
$height = 200;

// Create a new image with the desired dimensions
$new_image = imagecreatetruecolor($width, $height);

// Resize and crop the original image to fit the new dimensions
imagecopyresampled($new_image, $original_image, 0, 0, 0, 0, $width, $height, imagesx($original_image), imagesy($original_image));

// Save the new image
imagejpeg($new_image, 'resized.jpg');

// Free up memory
imagedestroy($original_image);
imagedestroy($new_image);