PHP - Fill In the Blanks (Set 1)
- abhijitsathe
- Sep 7
- 2 min read
Q.1) PHP stands for _____________
Answer - Hypertext Preprocessor
Q.2) PHP is a scripting language that runs at _____________
Answer - Server-side
Q.3) The PHP var_dump() function returns the ___________.
Answer - Value and Data Type both.
Q.4) ___________ statement loops through a block of code for each element in an array.
Answer - foreach
Q.5) PHP array is an ___________ map and contains value on the basis of key.
Answer:- ordered
Q.6) _________function gets the name of the class of the given object.
Answer:- get_class()
Q.7) ____________ function checks if all of the characters in the provided string, text, are lowercase letters.
Answer:- ctype_lower()
Q.8) In PHP call by reference, in order to pass value as a reference, you need to use _____________ symbol before the argument name.
Answer:- ampersand (&)
Q.9) In PHP, a variable name must start with a letter or __________ character.
Answer:- Underscore (_)
Q.10) A PHP session is easily started by making a call to the _________ function.
Answer:- session_start()
Q.11) PHP maintains an array where it stores all the global variable that we defined in an application. Such array is called __________ array.
Answer:- GLOBALS
Q.12)__________is a PHP super global variable which holds information about headers, paths, and script locations.
Answer:- $_SERVER
Q.13) __________ function accepts variable reference and base parameters to return integer by converting variable type with respect to the base.
Answer:- intval()
Q.14) ___________ function will print the array of data with more information to the browser such as its length, type information.
Answer:- var_dump()
Q.15) . ___________ function in PHP converts value of a variable into storable data format, whereas, ________ is used to convert storable data format back to its original form.
Answer:- seralize(), unseralize()
Q.16) Anonymous function is a function without any user defined name. Such a function is also called ___________ function.
Answer:- Lambda
Q.17) The date_format() function returns ___________ which represents the date formatted according to the specified format on successful formatting otherwise it returns false on failure.
Answer:- String
Q.18) ________function is used to return the date information.
Answer:- getdate()
Q.19) The _____________function accepts month, day and year as parameters and, verifies whether it is a Gregorian date or not.
Answer:- checkdate()
Q.20) _____________function sets the specified timezone to the given DateTime.
Answer:- date_timezone_set()
Want to read more?
Subscribe to questionbankos.com to keep reading this exclusive post.