Functions.php or functions.fcn

Asked

Viewed 42 times

3

I learned to include a file .fcn

I wonder if there is a difference between including a functions.php file and a functions.fcn file.

1 answer

4


For PHP there is no difference, you can include a file .php, .html, .phtml, .fcn, .class, .tpl, .anything. What matters is whether it is a text file.

If inside that text file you have the PHP tags <?php, <?, <?=?>, <% %> <%= %> he will parse normally.

Heed: Some tags are no longer supported in version 7, such as ASP (<% %>, <%=)
As tags short <? and <?= depends on configuration short_open_tag of php.ini.
Reference: Manual PHPEN

Browser other questions tagged

You are not signed in. Login or sign up in order to post.