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
Write a program to display reverse of any number?
Does php pass arrays by reference?
What is php good for?
What is strstr php?
How I can control asset documents without GR/IR?
How can you execute php script from the command line?
What is $_session in php?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
How to concatenate two strings in php?
Which is better python or php?
What is difference between html and php?
Explain soundex() and metaphone().
How to remove duplicate values from php array?
What advance thing in php7?
Tell me what types of loops exist in php?