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 can we calculate the similarity between two strings?
Which is the correct way to check if a session has already been started ?
Is php easy language to learn?
How will you calculate days between two dates in PHP?
What is $row in php?
Do I need to install php after xampp?
How to close a session properly?
What does php do?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
How to uploaded files to a table?
How is a constant defined in a PHP script?
How to check an element is exists in array or not in php?
How to access a specific character in a string using php?
How is session data stored?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.