How can PHP be utilized to separate HTML output from PHP logic to adhere to the EVA principle in web development?

To separate HTML output from PHP logic and adhere to the EVA (Separation of concerns) principle in web development, we can utilize PHP's templating system. This involves creating separate template files for the HTML structure and using PHP to inject dynamic data into these templates. By doing so, we can keep our PHP logic separate from the presentation layer, making our code more maintainable and easier to understand.

// PHP logic
$data = [
    'title' => 'Welcome to our website',
    'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
];

// Load HTML template
include 'template.php';
```

```html
<!-- template.php -->
<!DOCTYPE html>
<html>
<head>
    <title><?php echo $data['title']; ?></title>
</head>
<body>
    <div>
        <p><?php echo $data['content']; ?></p>
    </div>
</body>
</html>