What is the exact Diff. between include_once() and
require_once() in PHP?
Answer Posted / arvind pippal
. The include_once() statement includes and evaluates the
specified file during the execution of the script. This is
a behavior similar to the include() statement, with the
only difference being that if the code from a file has
already been included, it will not be included again. As
the name suggests, it will be included just once.
include_once() should be used in cases where the same file
might be included and evaluatedmore than once during a
particularexecution of a script, and you want to be sure
that it is included exactly once to avoid problems with
function redefinitions, variable value reassignments, etc.
require_once() should be used in cases where the same file
might be included and evaluatedmore than once during a
particular execution of a script, and you want to be sure
that it is included exactly once to avoid problems with
function redefinitions, variable value reassignments, etc.
Is This Answer Correct ? | 50 Yes | 12 No |
Post New Answer View All Answers
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..
What is $this in php?
What is the w3c?
What is a trait in php?
What is csrf validation?
Does browser understand php?
Why is used in php?
What is curl php?
How to get ip address of a server in php?
how to track user logged out or not? when a user is idle?
How can you submit a form without a submit button?
Is a number php?
Define anonymous classes in php7?
What is meant by variable variables in php?