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 the phpstorm?
my english is not too good then what we apply for a php programer post
What is the use of extract function in php?
Tell me how comfortable are you with writing html entirely by hand?
What are the different types of PHP arrays?
What is the definition of a session?
What is composer used for?
What does it mean when it says the csrf token is invalid?
Why did you choose this particular career path?
Does php need apache?
How to select a database in php?
Does empty check for null?
What is a base url?
How to terminate the execution of a script in PHP?
What is variable and data type?