Logo

Php Questions Set 49:

Quiz Mode

  Arrays cannot have associative indices in PHP. 

1
2

Solution:

 


1.How many predefined variables does PHP use to authenticate a user?

1
2
3
4

Solution:

 The output from PHP is __________ 

1
2
3
4

Solution:

Which method or property can only be accessed from within the enclosing class? Even subclasses have no access. 

1
2
3
4

Solution:

Which one of the following functions will convert a string to all uppercase?



 

1
2
3
4

Solution:

What will be the output of the following PHP code?

<?php

$str = "Hello World";

echo wordwrap($str, 5, "
");

?>

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

 

<?php
for ($x = 0; $x <= 10; print ++$x)
{
   print ++$x;
}
?>

1
2
3
4

Solution:

To process the file, you need to break the array from $_FILES into individual values. You can do this using the ________ function. 

1
2
3
4

Solution:

 Which is the most powerful authentication method among the four?

1
2
3
4

Solution:

What will be the output of the following PHP code?

<?php

$foods = array("pasta", "steak", "fish", "potatoes");

$food = preg_grep("/^s/", $foods);

print_r($food);

?>

1
2
3
4

Solution: