What is the different between required and required once? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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