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 Mcrypt used for?

552


Why is php used?

550


What is the method to execute a php script from the command line?

530


How do I check environment variables?

511


What is a query in php?

459






Write a program using while loop in php?

541


Why is facebook still using php?

549


What is the use of Mbstring?

520


List types of array are available in php?

524


Does php 7 support mysql?

546


What is action hooks and filter hooks?

477


What is 'float' property in css?

560


How to insert an new array element in array?

514


Write a program in php to check whether a number is prime or not?

476


What is an example of a variable?

520