Actually there is such a function in PHP which function is “include”.
It’s very strong function.
Here’s the alternate method to do that.
Isn’t it simple ?
Actually the main logic above is writing script tag in the document.