a) touched() b) touch() c) sets() d) set() Answer: b Explanation: Its prototype is int touch(string filename ...
View Question
What will be the output of the following PHP code?
<?php
$a = 1;
$b = 2;
$c = 3;
echo ($a * (($b) – $c));
?>
What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c ...
View QuestionPHP variables are case-sensitive?
a) True b) False c) For "sum" variable it is case-sensitive d) None of the above Answer: a Explanation: ...
View QuestionWhich one of the following function is capable of reading a specific number of characters form a file?
a) fgets() b) fget() c) fileget() d) filegets() Answer: a Explanation: Its prototype is string fgets(resource handle [, int ...
View QuestionWhich one of the following PHP function is used to determine a file’s last access time?
a) fileatime() b) filectime() c) fileltime() d) filetime() Answer: a Explanation: The fileatime() function returns a file’s last access ...
View QuestionA variable name can only contain ____________?
a) alphanumeric characters b) underscores c) Both A and B d) None of the above Answer: c Explanation: A ...
View QuestionWhen you need to obtain the ASCII value of a character which of the following function you apply in PHP?
a) chr( ); b) asc( ); c) ord( ); d) val( ); Answer: c Explanation: When we need to ...
View QuestionWhich one of the following PHP functions can be used to find files?
a) fold() b) file() c) glob() d) get_file() Answer: c Explanation: The function glob() returns an array of filenames ...
View QuestionA script is a_______.
a) Program or sequence of instructions that is interpreted or carried out by processor directly b) Program or ...
View QuestionPHP files have a default file extension of_______.
a) .html b) .xml c) .php d) .hphp Answer: c Explanation: To run a PHP file on the server, ...
View Question