文件名中包含多个点是否不好? [英] Does having multiple dots in a filename bad?

查看:413
本文介绍了文件名中包含多个点是否不好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何组织或文章说我们可以或不应该在文件名中包含多个点?如果在PHP文件中使用点号,我会感到很困惑,我可能会违反一些规则或标准.

Is there any organization or articles that says we can or should not have multiple dots in filename? I'm really confuse if I should use dot in PHP files, I might break some rules or standards.

推荐答案

包含多个点的文件名不会违反任何PHP命名约定,因为文件名不是PHP变量名;它们确实属于操作系统,PHP仅将它们视为字符串.

A filename with multiple dots does not break any PHP naming conventions, because file names are not PHP variable names; they belong to the OS really and PHP only sees them as strings.

编辑

我环顾四周,发现有多个点的情况:版本号和日期.关于这些是增加还是减少SEO值已有一些讨论,但我没有发现任何结论.它确实显示出它们已被使用.

I looked around and found cases for multiple dots: version numbers and dates. There has been some discussion as to whether these increase or decrease SEO value but I have not found anything conclusive. It does show however that they are used.

提示:尝试以下Google搜索:文件名中的搜索引擎优化期

Tip: Try the following Google search: seo periods in filenames

这篇关于文件名中包含多个点是否不好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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