Examveda
Examveda

Which one of the following statements is true for require() and require_once()?

A. They are functions

B. They are statements

C. They’ll not work if the () is not present

D. They can not be used to require files

Answer: Option B

Solution(By Examveda Team)

require() and require_once() are actually statements, not functions. This means that you can omit the brackets when using them.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept