Logo

Php Questions Set 64:

Quiz Mode

  How many methods does the DateTime class have? 

1
2
3
4

Solution:

How many main types of filtering are present in PHP?

1
2
3
4

Solution:

 What should be used to refer to a method in the context of a class rather than an object you use? 

1
2
3
4

Solution:

The _____ function reads the contents of a directory into an array.

1
2
3
4

Solution:

 What will be the output of the following PHP code?

<?php
$i = "";
while($i)
{   
   print "hi";
}
print "hello";
?>

1
2
3
4

Solution:

Which PHP function is used to return an array of various DNS resource records for a specific domain?

1
2
3
4

Solution:

 What will be the output of the following PHP code? 


<?php

    $url = "aniketh@example.com";

    echo ltrim(strstr($url, "@"),"@");

    ?>

1
2
3
4

Solution:

The attack which involves the insertion of malicious code into a page frequented by other users is known as _______________

1
2
3
4

Solution:

 Which one of the following statements can be used to establish port 80 connection with www.nachi.com?

1
2
3
4

Solution:

Which __________ statement should be used to disable the use of the 'administrator' and 'janitor' classes?

1
2
3
4

Solution: