Log in Register

Login to your account

Username
Password *
Remember Me

Create an account

Fields marked with an asterisk (*) are required.
Name
Username
Password *
Verify password *
Email *
Verify email *
Phone *
City
Country *
1.jpg

0


What is the main difference between require() and require_once()?


Submitted by frederickp On Saturday, 05 September 2015.

Category: PHP Tags: PHP interview questions and answers for freshers


Question

What is the main difference between require() and require_once()?

1 Answers.
 

0


require() and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it. (same for include_once() and include())
Submitted by Evawbadorow On Saturday, 05 September 2015
Answer :-
require() and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it. (same for include_once() and include())

1.jpg
Go to top