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

What is the difference between laravel and php?

697


How to redirect a url from http to https in .htaccess?

719


Tell me what is mean by an associative array?

738


How does php strcmp work?

738


How to check an element is exists in array or not in php?

807


How can we access the data sent through the url with the post method?

723


Is string php function?

798


What are properties in php?

709


What is the difference between for and foreach?

801


Which of the data type is compound datatype supported by PHP?

783


Where is session value stored?

751


Explain about the data types in PHP?

742


What is the php function that removes the last element of the array and returns it?

725


How can we determine whether a variable is set?

718


Does php 5 support exceptions?

898