|
|
PHP Require Once Statement
|
Tutorials » Php »
|
Topic |
What is Require Once statement?
|
|
Explanation |
|
The "require_once()" Statement is similar to "require()" except that it will check if the file has already
been included and if so, will not include it again.
Example
<?php
include 'test1.php';
require_once ("test1.php");
?>
In the above example the since test1.php is already included, "require_once" statement will give a Fatal Error message
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|