PHP Test №6

Which of these statements is true?
Is php can support multiple inheritance?
How would you add 1 to the variable $count?
Which of the following is used to check if a function has already been defined?
what is the return value of this substr function?
$rest = substr("abcdef", -1);
$rest = substr("abcdef", 0, -1);
Assume that your php file 'index.php' in location c:/apache/htdocs/phptutor/index.php. If you used basename($_SERVER['PHP_SELF']) function in your page, then what is the return value of this function ?
program will call the function display_result()
$x="display"; 
${$x.'_result'} ();
All variables in PHP start with which symbol?
Father of PHP?
In PHP the error control operator is
what will be the output of below code ?
$str="3dollars"; 
$a=20;
$a+=$str;
print($a);
what will be the output of below code ?

function zz(& $x)
{
$x=$x+5;
}
$x=10;
zz($x);
echo $x;
what will be the output of below code ?
echo $_SERVER['REMOTE_ADDR'];

What will be the output of below code?
$x=dir("."); 
while($y=$x->read())
{
echo $y."
"
}
$y->close();
What will be the output of below code?
$qpt = 'QualityPointTechnologies'; 
echo preg_match("/^Quality/", $qpt);
What will be the output of below code?
$test="3.5seconds"; 
settype($test,"double");
settype($test,"integer");
settype($test,"string");
print($test);
What will be the output of below code?
$x=array(2=>"mouse",7=>"keyboard"); 
$y=array_keys($x);
echo $y[1];
What will be the output of below code?
$data="98.8degrees"; 
(double)$data;
(int)$data;
(string)$string;
echo $data;
What will be the output of below code?
$x="101.5degrees"; 
(double)$x;
(int)$x;
echo (string)$x;
PHP is

Kommentieren Sie den Artikel

Bitte geben Sie Ihren Kommentar ein!
Bitte geben Sie hier Ihren Namen ein

Pruebas en línea