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
Are sessions stateless?
How can you submit a form without a submit button?
Tell me how to create a text file in php?
What are different types of errors available in Php?
How to join multiple strings into a single string?
How is the ternary conditional operator used in php?
Whether php supports microsoft sql server?
What is purpose of @ in Php?
How can we determine whether a variable is set?
What is $_ request in php?
Which database is best for php?
What is variable and data type?
What are the advantages of stored procedures in php?
What is isset in php?
Is php deprecated?