require_once

It is same as require, but only one time it includes the external file.

Example 1

Save as page1.php

PHP require_once

Save as page2.php

PHP require_once

Output:

PHP require_once
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +