Can we include a file two times in any PHP page?

Yes, we can use include("sample.php")

function more than once in any PHP page. It will include code from 'sample.php' file multiple times.

Note: Note: If ‘sample.php’ file contains some functions declaration, there will be an error. Why? Because it will try to separate function with the same name again and it will throw an error.

Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.