-3
我所知道的返回语句(基于JS)是停止脚本的执行并返回值和忽略后的值,那么在这个php代码中怎么可能有 (实际上是必需的) :返回值php
<?php
return "<!DOCTYPE html>
<html>
<head>
<title>$title</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
</head>
<body>
$content
</body>
</html>";
其完成此:
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
$title = "Test title";
$content = "<h1>Hello World</h1>";
$page = include_once "templates/page.php";
echo $page;
,也是有可能有一个函数外侧返回????
http://php.net/manual/en/function.return.php – jeroen