×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What is the difference of include and require statements in PHP?

143. What is the difference of include and require statements in PHP?

  1. There is not difference both are the same
  2. require is an alias of include
  3. require returns the Fatal Error, while include returns the Warning
  4. include includes one PHP file while require can include multiple PHP files

Answer: C) require returns the Fatal Error, while include returns the Warning

Explanation:

The both include and require statements are used to insert the content of one file into another file. Since both are identical but require returns the Fatal Error, while include returns the Warning.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.