What function can be used to read the entire content of a file into a variable in PHP?

To read the entire content of a file into a variable in PHP, you can use the `file_get_contents()` function. This function reads the entire file into a string variable, making it easy to manipulate or display the file content as needed.

$fileContent = file_get_contents('file.txt');
echo $fileContent;