What is the different between required and required once? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the different between required and required once?

did they have the same function?

15th Apr 2018, 5:42 AM
Fanuel Almaw
Fanuel Almaw - avatar
1 Answer
+ 2
The require_once statement is identical to require except PHP will check if the file has already been included, and if so, not include (require) it again. (php.net)
15th Apr 2018, 5:53 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar