Which one of the following statements is true for include_once() and require_once()?
A. Both are exactly the same
B. include_once is used for files where as require_once() is not
C. Both Handle the errors in the same way
D. Both do not handle the errors in the same way
Answer: Option D
Solution(By Examveda Team)
The only difference between the include() and require() statements lies in their handling of errors. A file invoked using require() will bring down your entire process when you meet an error. The same error encountered via a call to include() will merely generate a warning and end execution of the included file.Related Questions on Object Oriented Concept
Which one of the following is not a valid class name?
A. ShopProduct
B. Shopproduct
C. Shopproduct1
D. 1shopproduct
Fill in the blank with the best option. An Object is a/an ________ of a class.
A. type
B. prototype
C. instance
D. object
Which version of PHP introduced the visibility keywords i.e public, private, and protected?
A. PHP 4
B. PHP 5
C. PHP 5.1
D. PHP 5.3
Join The Discussion