Basic PHP quiz that covers PHP syntax, data types, control flow and common PHP methods.
This quiz is in PHP quiz collection.
Start quizWhat value is printed for "a" below?
<?php
$a = 1;
function Test()
{
echo "a = $a";
}
Test();
?>
Which of the following is true about php.ini file?
Is PHP whitespace sensitive?
What gets printed?
$var = 'false';
if ($var) {
echo 'true';
} else {
echo 'false';
}
What will be printed by the below code?
$a = 1;
{
$a = 2;
}
echo $a, "\n";
What will be printed?
$a = array();
if ($a[1]) null;
echo count($a), "\n";
PHP server scripts are surrounded by delimiters, which?
Which of the following is correct about determine the "truth" of any value not already of the Boolean type?
Which of the following is correct about determine the "truth" of any value not already of the Boolean type?
Which of the following is correct about determine the "truth" of any value not already of the Boolean type?
Which of the following magic constant of PHP returns class method name?
Which of the following can be used to get information sent via get/post method in PHP?
What does PHP stand for?
Which of the following is the way to create comments in PHP?
A value that has no defined value is expressed in PHP with the following keyword:
© 2017 QuizBucket.org