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

Answer Posted / hiren

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.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.

1780


Which function gives us the number of affected entries by a query?

697


Explain how can we execute a php script using command line?

699


Name some of the popular frameworks in php.

729


Is empty in excel?

712


What are the four scalar types of php?

816


Which PHP function would you use to send an email?

780


Can you define an argument as a reference type?

725


How do you clear environment variables?

696


What are the environmental variables?

777


What is the difference between php and cakephp?

713


If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?

652


What is the difference between session_unregister() and session_unset()?

809


What is $_ server request_method == post?

735


Is php closing tag necessary?

733