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 function should you use to join array elements with a glue string?
What is the use of get and post method in php?
Do you know what's the difference between __sleep and __wakeup?
How to open a file for writing?
Tell me what is the difference between unset() and unlink()?
What are the main error types in php and how do they differ?
What does the unlink() function mean?
How to convert a json string to an array in php?
Write a program to get lcm of two numbers using php?
What is the use of return in php?
how to use http headers inside php? Write the statement through which it can be added?
What is the difference between the functions strstr() and stristr()?
What is the use of $_server["php_self"] variable?
How to list all values of submitted fields?
explain php variable length argument function.