我是 php 新手,想知道我是否可以拥有这样的东西:
<?php
...
magicFunctionStart();
?>
<html>
<head>...</head>
<body>...</body>
</html>
<?php
$variable = magicFunctionEnd();
...
?>
我现在必须使用的是
<?php
...
$variable = "<html><head>...</head><body>...</body></html>"
?>
这很烦人且不可读。