Which keyword is used to refer to properties or methods within the class itself?
Which PHP global variable is used to collect form data sent with both the GET and POST methods?
What is the description of Error level E_ERROR?
Which function returns an array consisting of associative key/value pairs?
Which one of the following function returns the port number of a specified service?
To validate an email address, which PHP function flag should be used with filter_var()?
What will be the output of the following PHP code?
<?php
$url = "nachiketh@example.com";
echo ltrim(strstr($url, "@"),"@");
?>
Which of the following variables does PHP use to authenticate a user?
i) $_SERVER['PHP_AUTH_USER'].
ii) $_SERVER['PHP_AUTH_USERS'].
iii) $_SERVER['PHP_AUTH_PU'].
iv) $_SERVER['PHP_AUTH_PW'].
What is the purpose of the getMessage()
method?
What will be the output of the following PHP code?
<?php
$states = array("Dhanbad" => array
("population" => "11,35,000", "capital" => "Bangalore"),
"Tamil Nadu" => array( "population" => "17,90,000",
"capital" => "Chennai") );
echo $states["Dhanbad"]["population"];
?>