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

Answer Posted / joshna

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 ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inheritance in php? How many types of inheritance supports php?

524


how to track no of users logged in?

591


How be the result set of mysql handled in php?

578


What are the different errors in php?

557


How can I learn php fast?

552






Can I use node js with php?

525


How many keywords are there in php?

614


How to set a value in session? How to remove data from a session?

494


What is a string in r?

510


How to download and install php on windows?

601


What are the advantages of stored procedures, triggers, indexes in php?

497


What is the role of the .htaccess file in php?

545


How do I see how many pages per session in google analytics?

518


How to remove white spaces from the beginning and/or the end of a string in php?

535


Is php case sensitive?

508