-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