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

Can a super () and this () keywords be in same constructor?

690


What's the best method for sanitizing user input with php?

694


Explain the ternary conditional operator in php?

823


How do you destroy a particular or all Sessions?

786


Tell me what are the correct and the most two common way to start and finish a php block of code?

734


Can we use php variable in javascript?

753


What does php exit do?

723


What are the 5 types of data?

761


What is a base url?

714


How send email using php?

730


What are session variables in php?

711


Are php short tags acceptable to use?

741


How to enable cURL in PHP?

893


What is the delimiter default in PHP?

847


What is the use of @ in php?

784