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 to delete an element from an array?
What are php strings?
What are majic methords in php?
How to track user logged out or not? When user is idle?
What is $_session in php?
How many types of inheritances used in php and how we achieve it.
What are classes in php?
Explain the different types of errors in php.
Php error constants and their descriptions
What are the different tables(engine) present in mysql, which one is default?
What is the difference between single quoted string and double quoted string?
Tell me how can we change the maximum size of the files to be uploaded?
How can we determine whether a php variable is an instantiated object of a certain class?
Does wordpress still use php?
What is action hooks and filter hooks?