php - PHP 标题更改,包括标题
问题描述
我在更改页面的每个标题时遇到问题,因为在我的每个页面中都包含索引,我当前的设置是:
在 index.php 中:
<?php
$title = "Your title goes here";
?>
在 custompage.php 中:
<title><?php echo $title; ?></title>
这是我尝试过的并且效果很好,但是 index.php 没有标题,我该如何解决?
解决方案
推荐阅读
- csv - 我如何在 Haskell 中编写此函数
- android - 在 andriod webview whatsapp 按钮不起作用
- neovim - neovim 错误 Windows 10 UltiSnips 与 python 3
- python - 在python中将数组分配给JSON键会创建无效的JSON
- java - 如何在 iText 5 中显示 WYSIWYG 字段?
- awk - 在两个模式之间加入
- java - java - 如何从Java中REST Web服务的服务层的单元测试中调用@RestControllerAdvice类?
- java - 使用给定的字符串,删除括号内的任何内容
- html - 背景剪辑:填充框不起作用(背景)
- c++ - VS Code 根本不显示局部变量