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
Where are php configuration settings stored?
What is php7?
How to delete a file from the system?
What is the difference between super () and this ()?
What is php session_start() and session_destroy() function?
Is php faster than python?
How to execute a php script from the command line?
Explain how you can update memcached when you make changes to php?
what are the differences between php and perl
What is difference between print and echo in php?
Write a php script to get the largest key in an array?
Is empty java?
What is the use of mysql_real_escape_string() function?
What are the difference between overloading and overriding in oops?
How to remove blank spaces from the string?