file_get_contents 函数获取 php 文件的名称并读取文本文件的内容并将其显示在控制台上。获取内容,并回显它。<?php echo file_get_contents( "filename.php" ); ?>filename.php 的内容将作为输出。在上面的代码中,通过传递 php 文件名来调用函数“file_get_contents”。输出将是 php 文件中存在的内容。