PHP Interview Question and Answers
61. |
What is PHP’s configuration file called? |
|
PHP’s configuration file is called php.ini. |
|
|
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.
|
|
|
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.
|
|
|
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 |
|
|
65. |
What backslash character will match whitespace? |
|
\s will match whitespace in a PCRE.
|
|
|