PHP Interview Question and Answers

61. What is PHP’s configuration file called?
  PHP’s configuration file is called php.ini.
 
Your Name Your Email-ID
Your Answer
62. Which function would you use to read a line of data from a file?
  The fgets() function reads data up to the buffer size you pass it, the end of the line, or the end of the document, whichever comes first.
 
Your Name Your Email-ID
Your Answer
63. What is a PHP Filter?
 
  • A PHP filter is used to validate and filter data coming from insecure sources.
  • To test, validate and filter user input or custom data is an important part of any web application.
  • The PHP filter extension is designed to make data filtering easier and quicker.
 
Your Name Your Email-ID
Your Answer
64. What is the difference between PHP4 and PHP5?
  PHP4 cannot support oops concepts and Zend engine 1 is used.
PHP5 supports oops concepts and Zend engine 2 is used. Error supporting is increased in PHP5. XML and SQLLite will is increased in PHP5
 
Your Name Your Email-ID
Your Answer
65. What backslash character will match whitespace?
  \s will match whitespace in a PCRE.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415161718 Page 14 of 18