- 1

Does a standalone php file (e.g file1.php) require <?php ?> Tags?

This is about when creating separate php files. Not directly into the page. Do they require <?php ?> Tags.

15th Feb 2021, 1:57 PM
Mousin Ahanger
Mousin Ahanger - avatar
1 Respuesta
+ 1
I didn't get what you mean by standalone PHP file. As I understand it, PHP processor distinct PHP code from other code possibly in same page by looking for the PHP code marker tags. So I think it is necessary despite of whether the code was embedded in HTML, or written as mere PHP code.
15th Feb 2021, 2:13 PM
Ipang