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
What are the features and advantages of object-oriented programming in php?
How to count all the lines of code in a directory and sub folder?
What is difference between Method overriding and overloading in PHP?
Tell me how would you declare a function that receives one parameter name hello?
Tell me what is the main difference between require() and require_once()?
Differences between get, post and request methods ?
Starting or restarting a computer is called
What is variable declaration?
What is ci in php?
What is the function to count elements in an array in PHP?
How many types of errors in php?
How to download files from an external server with code in php?
What is the use of addslashes in php?
What is multidimensional array in php?
How to find the index of an element in an array php?