PHP basic
PHP is considered a server-side scripting language
Which of the following extensions is a correct PHP file extension?
How do you start the PHP scripting block?
Whitespace is not ignored in PHP
What does a semicolon indicate?
Variables in PHP start with
Which is the correct way to start a single line PHP comment?
Which is the correct way to start a multiple line PHP comment?
PHP variables need to be declared before adding values to them
Which is the correct way to declare a PHP variable?
How do you output "Hello W3docs" in PHP?
What is the correct way of adding 1 to the variable?
An array is a special variable that is capable of holding more than one value at a time.
The (2>0 || 4>5) condition will return
What will be displayed in the browser?
Which of the following is the correct way to use the include command?
The (2>0 && 4>5) condition will return?
What will be displayed in a browser ?
if (3 >= 0) {
echo "Hello";
} else {
echo "Welcome to ";
}
echo " W3Docs";
?>
What will be displayed in a browser ?
if ( 3 < 3 ) {
echo "Hello";
} elseif ( 3 > 3 ) {
echo "Welcome to ";
} else {
echo " Say hello"
}
echo " W3Docs !!";
?>
When is the default case of switch statement executed?