PHP - 加载< head>< / head>是否愚蠢?数据作为包含 [英] PHP - Is it dumb to load <head></head> data as an include

查看:132
本文介绍了PHP - 加载< head>< / head>是否愚蠢?数据作为包含的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个非常愚蠢的问题,但是加载文件中标签之间的数据并通过PHP include()加载它是否愚蠢?这样可以实现更轻松的编辑。谢谢。

解决方案

不,它不会愚蠢。代码重复越少越好。

This might be a really dumb question, but is it dumb to load the data that is in between the tags in a file and load it via PHP include()? That way it would allow for easier editing. Thanks.

解决方案

No it would not be dumb. The less duplication of code, the better.

这篇关于PHP - 加载< head>< / head>是否愚蠢?数据作为包含的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆