How can the EVA principle be applied to dynamically include meta tags in PHP pages?

To dynamically include meta tags in PHP pages using the EVA principle, we can create a function that takes in meta tag information as parameters and then use this function to include the meta tags in the header section of our PHP pages. This allows us to easily add or modify meta tags without having to manually update each individual page.

<?php
function includeMetaTags($title, $description, $keywords) {
    echo "<meta charset='UTF-8'>";
    echo "<meta name='description' content='$description'>";
    echo "<meta name='keywords' content='$keywords'>";
    echo "<title>$title</title>";
}

// Example usage
includeMetaTags("Page Title", "Page Description", "keyword1, keyword2, keyword3");
?>