PHP Interview Questions and Answers for Freshers 2018
Q1. What is PHP? PHP is a server-side scripting language. It is the most widely used web technology to create dynamic web pages. There are many PHP based frameworks and Open sources available for free to use. Some examples include WordPress, Drupal, Laravel, etc. We can embed PHP with HTML and can further write server-side code with PHP for web development. Q2. Which is the latest version of PHP? Stable release: 7.1.4 / 13 Apr 2017; http://php.net/downloads.php Q3. What are the extensions of PHP File? .php, .phtml, .php3, .php4, .php5, .php7, .phps . Q4. What is the difference between include(), include_once() and require_once() The include() statement includes and evaluates a specified line i.e. it will include a file based in the given path. require() does the same thing except upon failure it will generate a fatal error and halt the script whereas include() will just give a warning and allow the script to continue. require_once() will check if the f