+ 2

What is include_once() in PHP ??

🏵🌼💐🌸🌸💐

23rd Apr 2019, 12:36 PM
Nithya Yamasinghe
Nithya Yamasinghe - avatar
2 Respostas
+ 2
The include_once statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include statement, with the only difference being that if the code from a file has already been included, it will not be included again, and include_oncereturns TRUE .
23rd Apr 2019, 12:38 PM
Alessio Benvenuti
Alessio Benvenuti - avatar
+ 13
it prevents us from loading over and over again the same file if its needed only once...
14th May 2019, 7:35 PM
Prashanth Kumar
Prashanth Kumar - avatar