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 difference between print_r and echo in php?
How to avoid the undefined index error?
Do you know how to enable error reporting in php?
How do I use isdigit function?
How many types of functions are there in php?
What is difference between readonly and constant?
What is the difference between super () and this ()?
How to convert strings to upper or lower cases?
How many columns can be added in a table in mysql?
What does type casting mean in php? Explain with an example?
What is cakephp framework?
How to support multiple-page forms?
How check variable is set or not in php?
How to download files from an external server with code in php?
What is the actually used php version?