a) T b) N c) E d) I Answer: c Explanation: When the ...
View QuestionThe date() function returns ___ representation of the current date and/or time.
a) Integer b) String c) Boolean d) Float Answer: b Explanation: The function date() is used to ...
View Question
What will be the output of the following PHP code?
<?php
echo (checkdate(4,31,2010) ? ‘Valid’ : ‘Invalid’);
?>
What will be the output of the following PHP code? <?php ...
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 ...
View QuestionWhich function is useful when you want to output the executed command result?
a) out_cmm() b) out_system() c) cmm() d) system() Answer: d Explanation: The function system() in PHP is ...
View QuestionWhich function sets the file filename last-modified and last-accessed times?
a) sets() b) set() c) touch() d) touched() Answer: c Explanation: The function touch() will set the ...
View QuestionWhich one of the following function outputs the contents of a string variable to the specified resource?
a) filewrite() b) fwrite() c) filewrites() d) fwrites() Answer: b Explanation: The function fwrite() writes to an ...
View QuestionWhich one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
a) fgetsh() b) fgetsp() c) fgetsa() d) fgetss() Answer: d Explanation: The function fgetss() returns a line, ...
View QuestionWhich one of the following function is capable of reading a specific number of characters from a file?
a) fgets() b) fget() c) fileget() d) filegets() Answer: a Explanation: The function fgets() will return a ...
View QuestionWhich one of the following function is capable of reading a file into a string variable?
a) file_contents() b) file_get_contents() c) file_content() d) file_get_content() Answer: b Explanation: The function file_get_contents() reads a file ...
View Question