Home  >  Article  >  Backend Development  >  Should the php class file name be added with the .class suffix?

Should the php class file name be added with the .class suffix?

Guanhui
GuanhuiOriginal
2020-05-01 16:48:262741browse

Should the php class file name be added with the .class suffix?

Should the php class file name be added with the .class suffix

There is no standard for this, it is just a framework on the market for the convenience of management. You can add it or not according to your personal situation. As for the standard, there is no such stipulation. The reason why some frameworks have ".class" is a format to facilitate system definition.

Benefits of adding .class suffix

Adding .class can indicate that the file is a class file, which facilitates project management.

In team development, adding .class is a good norm and can facilitate cooperation and management.

The above is the detailed content of Should the php class file name be added with the .class suffix?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn