Is there any convention for naming php files?
Not talking about php class files, but files that are mostly HTML with some php inside them.
Should it be my-file-example.php
or myFileExample.php
or myfileexample.php
?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Is there a way to play audio on a mobile browser w
PSR-4 recommends using a directory hierarchy to represent the namespace.
For Object-Oriented programming, the autoloader can simplify code management with relatively little cost overhead at run time. This requires the capability to determine a file path from a class name - hence a linear transform of the latter is a good idea. This might be as simple as
$className . ".php"