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 open a file for reading?
Explain do you use composer? If yes, what benefits have you found in it?
How to enable cURL in PHP?
What are the features and advantages of object-oriented programming in php?
What is the difference server side and browser side validation?
Do csrf tokens expire?
What are the methods of array in java?
Explain Type juggling?
Which function parses an English textual date or time into Unix timestamp in PHP.
What is null value in php?
Do you know what does $globals means?
How can we execute a php script using command line?
Is salary fixed or variable cost?
Tell me what is the difference between the functions strstr() and stristr()?
Which function is used in php to delete a file?