PHP MCQ Question and Answer
PHP MCQ Question and Answer
82. Full form of PHP
- PreHypertextProcessor
- HypertextPreprocessor
- Hypertext Postprocessor
- PostHypertextProcessor
84. In php Which method is used to getting browser properties?
- $_SERVER['HTTP_USER_AGENT'];
- $_SERVER['PHP_SELF']
- $_SERVER['SERVER_NAME']
- $_SERVER['HTTP_VARIENT']
85. Which of the following function is used to pick one or more random values from PHP Array?
- array_rand()
- array_random()
- Random_array()
- Rand_array()
87. Assume that your php file 'index.php' in location c:/apache/htdocs/phptutor/index.php. If you used $_SERVER['PHP_SELF'] function in your page, then what is the return value of this function ?
- phptutor/index.php
- /phptutor/index.php
- c:/apache/htdocs/phptutor/index.php
- index.php
88. Which operator is used to concatenate two strings in php?
- dot operator (.)
- plus operator (+)
89. Are there regular expressions in PHP?
- Yes - regular expressions use Perl-like conventions
- Yes - PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE).
- Yes - regular expressions use the POSIX standard
- No - PHP uses "glob" style matching only
90. In PHP, which of the following function is used to insert content of one php file into another php file before server executes it
- include[]
- #include()
- include()
- #include{}