Loading…

Explain the difference between require() and require_once()?

require() and require_once() both are used for include PHP files into another PHP files. But the difference is with the help of require() we can include the same file many times in a single page, but in case of require_once() we can call the same file many times, but PHP includes that file only single time.

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question