What is the correct way to display the content of a text file in PHP?
To display the content of a text file in PHP, you can use the `file_get_contents()` function to read the file and then `echo` the content to display it on the screen.
<?php
$file = "example.txt"; // specify the file path
$content = file_get_contents($file); // read the file content
echo $content; // display the content on the screen
?>