How can meta tags and headers be utilized in PHP to ensure proper UTF-8 display?

When working with PHP, it is important to ensure that your web pages are properly encoded in UTF-8 to display special characters correctly. To achieve this, you can set the meta tags in the HTML header to specify the UTF-8 character set and also send the appropriate headers in PHP to inform the browser about the encoding.

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Your Page Title</title>
</head>
<body>
<?php
header('Content-Type: text/html; charset=UTF-8');
?>
<!-- Your content here -->
</body>
</html>