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
Tell me how is the ternary conditional operator used in php?
How to convert strings to upper or lower cases?
What is mysqli php?
How to open a file for writing?
Do you know what's the difference between __sleep and __wakeup?
Are react hooks stable?
What is the difference between == and === operator in PHP?
What is abstraction php?
What is class extend in php?
What’s the special meaning of __sleep and __wakeup?
How we can retrieve the data in the result set of mysql using php?
What u mean by query?
What is the use of extract function in php?
Tell me when a conditional statement is ended with an endif?
Explain Traits in PHP?