PHP include file - Include file more than once
In this tutorial I will show you how to divide your code into more files and how to include various files into your actual PHP code.
|Name:||PHP include file|
Bookmark PHP include file
Step 3 - Include file more than once
PHP include file
Sometimes it can happen that you want to include a file in your script more than once. There is no problem with it. You can do this by calling include more times. Altough in such case maybe a well organized loop can be better.
So to demonstarte more include calls I have created the following example code:
And the main file is:
Output:-->internal.php<-- Multiple include test. -->internal.php<-- Now include it again. -->internal.php<-- And again. -->internal.php<--
Previous Step of PHP include fileNext Step of PHP include file
Tags: php incluude file, php include, include file, file include, php, include, file