1.
Which function is used to replace text within a string?
2.
What is the correct syntax of echo statement in PHP?
3.
Which data type is not supported by PHP?
4.
Which is/are statement(s) true about PHP?
5.
What will be the output of the following PHP code?
<?php
printf("%x",65535);
?>
7.
Which type is used to store the database call?
8.
Which function converts a string of ASCII characters to hexadecimal values?
9.
What will be the output of the following PHP code?
<?php
function Increment(){
static $num = 0;
echo "$num";
$num++;
}
Increment();
Increment();
Increment();
?>
10.
Which is not a valid variable name in PHP?
11.
A PHP integer data type can store values between ____.
12.
What will be the output of the following PHP code?
<?php
$x = 5;
function myFunction(){
echo "Result $x";
}
myFunction();
?>
13.
Which statement is commonly used for PHP output?
14.
How many variable scopes are there in PHP?
15.
In the syntax of $GLOBALS[index], what does "index" hold?
16.
What is the complete syntax of join() function in PHP?
17.
There is a variable "name" that contains the name of a person, which is/are the correct echo statement(s) to print the "name" suffix with "Hello"?
18.
What is the complete syntax of chunk_split() function in PHP?
19.
There are two variables a, b which declared in global scope, which is the correct PHP statement to access them within a function?
20.
What will be the output of the following PHP code?