a) zip() b) compress() c) gzcompress() d) zip_compress() Answer: c Explanation: We will be able to achieve almost 50% ...
View QuestionWhich one of the following preg PHP functions is used to take a string, and put it in an array?
a) preg_destroy() b) preg_split() c) preg_unchain() d) preg_divide() Answer: b Explanation: The string is broken up into different values ...
View QuestionWhich of the following PHP functions can be used for generating unique id’s?
a) id() b) md5() c) mdid() d) uniqueid() Answer: d Explanation: Many people use the md5() function for this, ...
View QuestionWhich loop evaluates the condition expression as Boolean, if it is true, it executes the statements and when it is false it will terminate?
a) For loop b) while loop c) do-while loop d) All of the above Answer: b Explanation: While loop ...
View QuestionA function in PHP which starts with __ (double underscore) is known as.
a) Magic Function b) Inbuilt Function c) Default Function d) User Defined Function Answer: a Explanation: PHP functions that ...
View QuestionHow many functions does PHP offer for searching strings using POSIX style regular expression?
a) 7 b) 8 c) 9 d) 10 Answer: a Explanation: ereg(), ereg_replace(), eregi(), eregi_replace(), split(), spliti(), and sql_regcase() ...
View QuestionWhich one of the following function reads a directory into an Array?
a) scandir() b) readdir() c) scandirectory() d) readdirectory() Answer: a Explanation: It returns an array consisting of files and ...
View Question[:alpha:] can also be specified as.
[:alpha:] can also be specified as. a) [A-Za-z0-9] b) [A-za-z] c) [A-z] d) [a-z] Answer: b Explanation: [:alpha:] is ...
View QuestionWhich one is not a data type in PHP?
a) Resources b) Objects c) Null d) Void Answer: d Explanation: The void is not a data type in ...
View QuestionWhich function sets the file filename’s last-modified and last-accessed times?
a) touched() b) touch() c) sets() d) set() Answer: b Explanation: Its prototype is int touch(string filename ...
View Question