Does it make any difference using .class.php?

0

Change something using .class.php example: conn.class.php

Whenever I search on appears over class and the programming itself!

    
asked by anonymous 17.04.2018 / 16:57

1 answer

1

Speaking of conventions such as PSR4, you should not put .class.php as this will influence autoload class via namespace .

Excluding this does not change anything. It does not actually need .php , it is only used to make it easier for the webserver that that file it should delegate to the PHP interpreter.

Another example is command-line applications that have no extension at all, such as composer , for example.

    
17.04.2018 / 17:06