Whats the difference between include() and require()?

Answer Posted / priyanka

include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how can you pass a variable by reference?

509


Does php support overloading?

571


What is php and why we use it?

493


What is the use of mvc in php?

514


What is php in simple words?

519






Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?

526


What are computer variables?

532


Does wordpress still use php?

522


What are examples of independent and dependent variables?

495


What is use of header() function in php? What the limitation of header()?

475


Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?

522


Is php faster than nodejs?

491


Is null in php?

530


What is difference between action hook and filter hook?

493


What is encapsulation in php with example?

554