What is the different between required and required once? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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