Which of the following is the use of strpos() function in PHP?
What is the use of fopen() function in PHP?
which function is used to get a lenth of of the string variable
Which is used to check that variable is present in the array or not?
What will be the output of the following program?
<?php
$a;
if ($a)
{
echo "hi";
}
else
{
echo "How are you";
}
?>
Which of the following starts with __ (double underscore) in PHP?
Which of the following PHP function is used to generate unique id?
Which of the following is not a predefined constant?
Which of the following is the correct way of defining a variable in PHP?
Which of the following statement is not correct for PHP?
What will be the output of the following code?
$Rent = 250;
function Expenses($Other)
{
$Rent = 250 + $Other;
return $Rent;
}
Expenses(50);
echo $Rent;
Which symbol is used as new line character
What will be the output of the following program?
<?php
$a = 0;
while ($a++)
{
echo "$a";
}
echo $a;
?>
Which method or property can only be accessed from within the enclosing class? Even subclasses have no access.
What will be the output of the following program?
<?php
$var1 = "Hello";
$var2 = "World";
echo $var1, $var2;
?>
Which function is used to find the files in Php
What will be the output of the following code?
$a = 10;
echo 'Value of a = $a';
which of the following characters are taken care of by htmlspecialchars?
What will be the output of the following program?
<?php
$x = 15;
$y = 20;
if($x < ++$x || $y < ++$y)
{
echo "Hello World";
}
else
{
echo "Hii everyone";
}
?>
What will be the output of the following PHP code?
<?php
class MyClass
{
}
$a = new MyClass;
var_dump(!($a instanceof stdClass));
?>