PHP Flashcards
What does PHP stand for?
PHP: Hypertext Preprocessor
PHP server scripts are surrounded by delimiters, which?
How do you write “Hello World” in PHP
echo “Hello World”;
All variables in PHP start with which symbol?
$
What is the correct way to end a PHP statement?
;
The PHP syntax is most similar to:
Perl and C
How do you get information from a form that is submitted using the “get” method?
$_GET[];
When using the POST method, variables are displayed in the URL:
False
In PHP you can use both single quotes ( ‘ ‘ ) and double quotes ( “ “ ) for strings:
True
Include files must have the file extension “.inc”
False
What is the correct way to include the file “time.inc” ?
What is the correct way to create a function in PHP?
function myFunction()
What is the correct way to open the file “time.txt” as readable?
fopen(“time.txt”,”r”);
PHP allows you to send emails directly from a script
True
What is the correct way to connect to a MySQL database?
mysqli_connect(host,username,password,dbname);
What is the correct way to add 1 to the $count variable?
$count++;
What is a correct way to add a comment in PHP?
/…/
PHP can be run on Microsoft Windows IIS(Internet Information Server):
True
In PHP, the die() and exit() functions do the exact same thing.
True
Which one of these variables has an illegal name?
$my-Var