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
What is faster?
Explain which cryptographic extension provide generation and verification of digital signatures?
What is the difference between pop3 IMAP and MAPI?
What are global variables in php?
What are the uses of explode() and implode() functions?
What is the difference between require_once and require in php?
How can we create a database using php?
Why is node js better than php?
Tell me how can we get the error when there is a problem to upload a file?
What is a comment in php?
What is traits? How it is used in php?
How can i execute PHP File using Command Line?
What are the correct and the most two common way to start and finish a PHP block of code?
What is difference between Method overriding and overloading in PHP?
What is trim codeigniter?