Php Interview Question and Answers
5. |
What is a PHP File? |
|
- PHP files may contain text, HTML tags and scripts
- PHP files are returned to the browser as plain HTML
- PHP files have a file extension of ".php", ".php3", or ".phtml"
|
|
|
6. |
What is Php? |
|
PHP is a powerful server-side scripting language for creating dynamic and interactive websites. |
|
|
7. |
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.
|
|
|
8. |
Which are the best start and end tags to use? |
|
It is largely a matter of preference. For the sake of portability, the standard tags (<?php and ?>) are probably the safest choice. Short tags are enabled by default and have the virtue of brevity, but to promote portability, it might be safest to avoid them. |
|
|