Back To CalendarScripts
A test for PHP Developers. This test is for demonstration purpose of
. Some of the questions are taken from
What does PHP stand for?
PHP: Hypertext Preprocessor
Personal Hypertext Page
Programming Home Processor
By which delimiters are PHP server scripts surrounded?
How do you write "Hello World" in PHP?
echo 'Hello World';
copy con prn 'Hello World'
> 'Hello World'
In PHP what starts with "$" symbol?
What does the "break" statement do in PHP?
Exits the scrtipt
Breaks string into smaller parts
Exits a loop
In PHP the following is allowed:
To end statements without ;
To put or not to put spaces between varibles or operators by your choice
To start variable names with a number
How do you get information from a form that is submitted using the "get" method?
When using the POST method, variables are displayed in the URL:
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Include files must have the file extension ".inc"
Why having .inc extension is not a good idea for the include files?
Because a PHP script with .inc extension will not work
Because such a file could be downloaded from the browser if someone knows the URL
It is not a bad idea to have .inc extension - it is a requirement
What is the correct way to create a function in PHP?
What is the correct way to open the file "time.txt" as readable?
PHP allows you to send emails directly from a script
What is the correct way to connect to a MySQL database?
What is the correct way to add 1 to the $count variable?
What is a correct way to add a comment in PHP?
PHP can be run on Microsoft Windows IIS(Internet Information Server):
In PHP 5, MySQL support is enabled by default:
Which one of these variables has an illegal name?
Please enter personal details