7 Days Open Visit Center ( +91 9718394718 )
PHP Interview Question

What is difference between unset and unlink.

Unset is used to delete(destroy) a variable whereas unlink used to delete a file.

What is the difference between include() and require()

include() function gives the warning when specified file not found but all script will be continually  executed.
e.g.
                      include("filename.php");
                  echo "hello";

              ?>
output:- hello
In the above  example if file not found then it gives warning and print the hello because warning does not  stop script and echo will be execute.
require() function gives the fatal error when specifies file is not found and stop the script.  
e.g.   
                require("filename.php");
                echo "hello";
           ?>
output:-   it gives fatal error and stop the script ,echo will not be executed.

Program Modules

Fill details to get brochure via E-mail!
  • Click here to refresh captcha
X

Apply For Demo Class

  • Click here to refresh captcha
Apply Now