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 |
what is Abbreviavion of PHP?
what are interfaces and Abstart classes
What is singleton class in php?
How is php different from other languages?
Why is php used?
What is the $_ server php_self variable?
What is inheritance in php with example?
Explain scalar type declarations in php7?
How to increase the maximum execution time of a script in php?
Difference between get and post method.
How are Variables Defined in PHP?
What is meant by PEAR in PHP?