What is the difference between include and include_once ?
Which is one is good in terms of performance ?
Answer Posted / ankit
By Using include() function we can include a file any
number of times.But if you will face a Fatal error that is
a connect() or any function can not be redeclared then just
use include_once(), it will include that file only once,
then it doesn't matter how many times u include that
file. :)
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is split function in php?
How to execute a function in php?
How to get a total number of elements used in the array?
What is the difference between session_unregister() and session_unset()?
Why does php start with variables?
Why do we use query?
Which function would you use to insert a record into a database in php?
Does facebook use php framework?
How to get ip address of clients machine?
Is false empty php?
Why would we use === instead of ==?
Explain what are the different errors in php?
Explain me what is the goto statement useful for?
What is variable and data type?
What is PHP's configuration file called?