What are the differences between include() and include_once
() functions?
Answers were Sorted based on User's Feedback
Answer / anjali ashok arote
include()function is more time consuming because of redeclaration is more in include() file ...
where as include_once()function only declare one time...
in include()function refreshment of file is needed many time
but in include_once()function refreshment of page is only one time
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nishit
file1.php:
function check()
{
echo 'hello nishit';
}
file2.php
include('file1.php');
check();
file3.php
include('file1.php');[this is worn we should use here
include once.]
include('file2.php');
check();
while execute file3.php see what the error:
| Is This Answer Correct ? | 4 Yes | 5 No |
How to remove blank spaces from the string?
Tell me how can we connect to a mysql database from a php script?
What is htaccess in php?
What is php default argument?
When to use single quotes, double quotes, and backticks?
Explain about the connective abilities of the PHP?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
What is use of htmlspecialchars php?
How to remove leading and trailing spaces from user input values in php?
how many types of inheritance is there in php? name there?
what are the errors and when we get that particular errors.and who will give that errors
Which function would you use to merge two arrays in php?