What are the differences between include() and include_once
() functions?
Answer Posted / 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 |
Post New Answer View All Answers
How long does a session last in php?
How to remove the new line character from the end of a text line in php?
How to get no of arguments passed to a PHP Function?
What does mysqli_query return?
sort term descripttion form, report and uery
What is Apache's configuration file typically called?
How failures in execution are handled with include() and require() functions?
What are the 5 types of data?
Explain what does the expression exception::__tostring means?
What is the meaning of "enctype= multipart/form-data" ?
What is cookies php?
Explain how you can update memcached when you make changes to php?
How to get the number of characters in a string?
What does the scope of variables mean?
Why are sessions used?