What is the different between required and required once? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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