Vidyalelo
PHP · Q83

Object Oriented Concept

Programming · PHP · question 83

Q83

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

A.
They are functions
B.
They are statements
Answer
C.
They’ll not work if the () is not present
D.
They can not be used to require files

Answer: Option B

Solution

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