Javatpoint Logo
Javatpoint Logo

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
Next TopicPHP Tutorial




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA