What are the differences between include() and include_once
() functions?
Answer Posted / sanjay sharma
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. As the name
suggests, it will be included just once. so include_once() is
better than include().
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
How do I get csrf token?
What is the use of 'print' in php?
How to create an array of a group of items inside an html form?
Where are cookies stored php?
What is scope of variable in php?
What is the default time in seconds for which session data is considered valid?
How check submit button is clicked in php?
When to use get and post request?
What is the use of nl2br() in php?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
What is in php 7?
How does cookies work in php?
What is helper function?
What is a php session?
What is json php?