What are the differences between include() and include_once
() functions?

Answer Posted / anup baba

Include():by using this include()we can embed external page
in the current script multiple time,if the embeded file is
not available it returns a warning message and executes the
rest of the statements.The include_once() is same as include
() but it includes the external file only one time and
ignores the remaining all include_once statement which
contains the same file name.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between md5(), crc32() and sha1() crypto on php?

609


Do you know what is use of count() function in php?

517


How to create a session? How to remove data from a session?

518


Explain what are psrs?

504


What is php oops concepts?

520






How to delete an element from an array?

555


What is class extend in php?

531


Which php mvc framework is best?

555


What is new keyword in php?

530


How is session data stored?

496


Differentiate echo vs. Print statement.

534


Can we set session value in javascript?

521


What is the use of htmlentities in php?

500


What is mysql_fetch_array?

519


Which is better wamp or xampp?

530