What is the difference between require_once and require in php?



What is the difference between require_once and require in php?..

Answer / Manish Kumar Kathore

The main difference between require_once and require in PHP is that require_once includes a file only once, regardless of how many times it's required within the script. On the other hand, require includes a file every time it's called.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How can i execute PHP File using Command Line?

1 Answers  


What are the characteristics of php variables?

1 Answers  


What is data abstraction in php?

1 Answers  


What is fulltextsearch

2 Answers   A1 Technology,


Describe which programming language does php parallel to?

1 Answers  


Why do you need to filter out empty files?

1 Answers  


Write down the benefits of php7?

1 Answers  


Is key in array php?

1 Answers  


what is php stands for?

23 Answers   Infosys, Satyam, Torque Infotech,


What’s the difference between htmlentities() and htmlspecialchars()?

1 Answers  


What is php stack?

1 Answers  


What is cakephp framework?

1 Answers  


Categories