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
How is it possible to return a value from a function?
Could we start a variable with number like $4name?
How would you open a directory for reading in php?
Please explain is it possible to use com component in php?
Are parent constructors called implicitly inside a class constructor?
A process is identified by a unique___
What is a collection in php?
Tell me what types of loops exist in php?
What is a controller php?
Tell me what is the difference between exception::getmessage and exception::getline?
Can php run without apache?
What is the difference between associative array and indexed array?
Is php easy language to learn?
What percentage of websites use php?
What are differences between PECL and PEAR?