What are the difference between include_once & Require_once?

Answers were Sorted based on User's Feedback



What are the difference between include_once & Require_once?..

Answer / udhayakumar

include() generates a warning, but the script will continue
execution but require() generates a fatal error, and the
script will stop the execution

Is This Answer Correct ?    21 Yes 2 No

What are the difference between include_once & Require_once?..

Answer / ramesh

include() generates a warning, but the script will continue
execution but require() generates a fatal error, and the
script will stop the execution or we can write PHP code for
continue execution

Is This Answer Correct ?    6 Yes 4 No

Post New Answer

More PHP Interview Questions

Is laravel easy to learn?

0 Answers  


What is meant by PEAR in PHP?

0 Answers  


How you can update memcached when you make changes to php?

0 Answers  


How do you explain independent and dependent variables?

0 Answers  


•How do you create subdomains using PHP?

1 Answers  






What is a string in php?

0 Answers  


how to select the multiple data in selection button

1 Answers   xasis technologies,


Are react hooks stable?

0 Answers  


what is Abbreviavion of PHP?

6 Answers  


How do you debug php?

0 Answers  


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

0 Answers  


How to get the directory name out of a file path name?

0 Answers  


Categories