What is difference between required and include in php?



What is difference between required and include in php?..

Answer / Vaibhav Pratap Singh

In PHP, required includes a file and stops the execution of the script if there's an error while including the file. Include continues the execution even if there's an error. Required should be used when the included file is critical for the script to function properly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

what is Abbreviavion of PHP?

6 Answers  


what are interfaces and Abstart classes

1 Answers   Net Solution,


What is singleton class in php?

1 Answers  


How is php different from other languages?

1 Answers  


Why is php used?

1 Answers  


What is the $_ server php_self variable?

1 Answers  


What is inheritance in php with example?

1 Answers  


Explain scalar type declarations in php7?

1 Answers  


How to increase the maximum execution time of a script in php?

1 Answers  


Difference between get and post method.

1 Answers  


How are Variables Defined in PHP?

6 Answers   T3 Softwares,


What is meant by PEAR in PHP?

1 Answers  


Categories