Which of the following is used for concatenation in PHP?
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 code?
$var = 10;
function fn ()
{
$var = 20;
return $var;
}
fn ();
echo $var;
What is the use of fopen() function in PHP?
Which of the below statements is equivalent to $add += $add?
Index array postion starts with
Which of the following is not a predefined constant?
Which symbol is used as new line character
What will be the output of the following code?
$a = 10;
echo 'Value of a = $a';
Output of the following code is
What will be the output of the following program?
<?php
$a;
if ($a)
{
echo "hi";
}
else
{
echo "How are you";
}
?>
which function is used to get a lenth of of the string variable
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 PHP function is capable to read specific number of characters from a file?
What will be the output of the following PHP code?
<?php
class MyClass
{
}
$a = new MyClass;
var_dump(!($a instanceof stdClass));
?>
What will be the output of the following code?
$Rent = 250;
function Expenses($Other)
{
$Rent = 250 + $Other;
return $Rent;
}
Expenses(50);
echo $Rent;
which of the following characters are taken care of by htmlspecialchars?
Which function is used to unset a variable?
The loops supported by Php
Which of the following is the correct way of defining a variable in PHP?