What does PHP stand for?
Private Home Page
PHP: Hypertext Preprocessor
Personal Hypertext Processor
Professional Hypertext Processor
PHP server scripts are surrounded by delimiters, which?
<&>...</&>
<?php...?>
<script>...</script>
<?php>...</?>
3. How do you output "Hello World" in PHP
"Hello World";
echo "Hello World";
Document.Write("Hello World");
All variables in PHP start with which symbol?
&
$
!
#
What is the correct way to end a PHP statement?
</php>
New line
;
.
The PHP syntax is most similar to:
Perl and C
VBScript
JavaScript
Assembly
How do you get information from a form that is submitted using the "get" method?
Request.Form;
$_GET[];
Request.QueryString;
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"
What is the correct way to include the file "time.inc" ?
<?php include "time.inc"; ?>
<?php include:"time.inc"; ?>
<?php include file="time.inc"; ?>
<!-- include file="time.inc" -->
What is the correct way to create a function in PHP?
create myFunction()
function myFunction()
new_function myFunction()
What is the correct way to open the file "time.txt" as readable?
fopen("time.txt","r");
open("time.txt");
open("time.txt","read");
fopen("time.txt","r+");
PHP allows you to send emails directly from a script
What is the correct way to connect to a MySQL database?
mysqli_open(host,username,password,dbname);
mysqli_db(host,username,password,dbname);
mysqli_connect(host,username,password,dbname);
What is the correct way to add 1 to the $count variable?
$count =+1
++count
$count++;
count++;
What is a correct way to add a comment in PHP?
/*...*/
*\...\*
<!--...-->
<comment>...</comment>
PHP can be run on Microsoft Windows IIS (Internet Information Server)
In PHP, the die() and exit() functions do the exact same thing.
Which one of these variables has an illegal name?
$my_Var
$my-Var
$myVar